shensong00 3 anni fa
parent
commit
c9e7dcb837
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      douyin_live_lottery_scraper.py

+ 5 - 5
douyin_live_lottery_scraper.py

@@ -86,10 +86,10 @@ def get_live_lottery_data(room_id, result):
86 86
         "os_api" : "23",
87 87
         "device_type" : device_type,
88 88
         "ssmix" : "a",
89
-        "manifest_version_code" : f'{V1}{V2}0',#"120801",
89
+        "manifest_version_code" : "120801",
90 90
         "dpi" : "640",
91 91
         "app_name" : "aweme",
92
-        "version_name" : f'{V1}.{V2}.0',#"12.8.0",
92
+        "version_name" : "12.8.0",
93 93
         "ts" : int(time.time()),
94 94
         "cpu_support64" : "true",
95 95
         "storage_type" : "0",
@@ -97,13 +97,13 @@ def get_live_lottery_data(room_id, result):
97 97
         "appTheme" : "dark",
98 98
         "ac" : "wifi",
99 99
         "host_abi" : "armeabi-v7a",
100
-        "update_version_code" : f'{V1}{V2}02',#"12809900",
100
+        "update_version_code" : "12809900",
101 101
         "channel" : "wandoujia_douyinnew_1128",
102 102
         "_rticket" : rticket,
103 103
         # "_rticket" : "1629688012123",
104 104
         "device_platform" : "android",
105 105
         "iid" : str(iid),
106
-        "version_code" : f'{V1}{V2}0',#"120800",
106
+        "version_code" : "120800",
107 107
         "mac_address" : mc,
108 108
         #"mac_address" : "FC%3ADB%3AB3%3A56%3ABD%3AFD",
109 109
         "cdid" : "6c96979e-c729-419c-9516-3a85a7338d0c",
@@ -123,7 +123,7 @@ def get_live_lottery_data(room_id, result):
123 123
 
124 124
     xGorgon = X_Gorgon(query_params, body)
125 125
 
126
-    userAgent = userAgent = f'com.ss.android.ugc.aweme/{V1}{V2}0 (Linux; U; Android 5.1.1; zh_CN; {device_type}; Build/LMY47V; Cronet/58.0.2991.0)'
126
+    userAgent = userAgent = f'com.ss.android.ugc.aweme/1208000 (Linux; U; Android 5.1.1; zh_CN; {device_type}; Build/LMY47V; Cronet/58.0.2991.0)'
127 127
 
128 128
     headers = {
129 129
         'Host': domain,