Ailyth commited on
Commit
c79e04f
1 Parent(s): 8cc0fc3

update xml scan

Browse files
Files changed (1) hide show
  1. xml_scan.py +4 -1
xml_scan.py CHANGED
@@ -4,6 +4,9 @@ import binascii
4
  import requests
5
  import xml.etree.ElementTree as ET
6
  from tqdm import tqdm
 
 
 
7
 
8
  # Function to generate URL using HMAC
9
  def generate_url(GameID):
@@ -38,7 +41,7 @@ for number in tqdm(range(1, 45000)):
38
  with open("extracted_info.txt", "a", encoding="utf-8") as info_file:
39
  info_file.write(f"{title_id},{title},{version},{content_id}\n")
40
 
41
- print(f"{GameID} - Extraction completed!")
42
  except (requests.exceptions.RequestException, ET.ParseError) as e:
43
  print(f"{GameID} - Error: {e}")
44
  continue # 出错时继续下一次循环
 
4
  import requests
5
  import xml.etree.ElementTree as ET
6
  from tqdm import tqdm
7
+ import urllib3
8
+
9
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
10
 
11
  # Function to generate URL using HMAC
12
  def generate_url(GameID):
 
41
  with open("extracted_info.txt", "a", encoding="utf-8") as info_file:
42
  info_file.write(f"{title_id},{title},{version},{content_id}\n")
43
 
44
+ print(f"{GameID}:{title} - 获取完成")
45
  except (requests.exceptions.RequestException, ET.ParseError) as e:
46
  print(f"{GameID} - Error: {e}")
47
  continue # 出错时继续下一次循环