shensong00 3 years ago
parent
commit
548fc359c1
1 changed files with 5 additions and 5 deletions
  1. 5 5
      douyin_hourly_ranklist_commerce_scraper.py

+ 5 - 5
douyin_hourly_ranklist_commerce_scraper.py

91
         "os_api" : "23",
91
         "os_api" : "23",
92
         "device_type" : device_type,
92
         "device_type" : device_type,
93
         "ssmix" : "a",
93
         "ssmix" : "a",
94
-        "manifest_version_code" : f'{V1}{V2}0',#"130001",
94
+        "manifest_version_code" : "130001",
95
         "dpi" : "480",
95
         "dpi" : "480",
96
         "app_name" : "aweme",
96
         "app_name" : "aweme",
97
-        "version_name" : f'{V1}.{V2}.0',#"13.0.0",
97
+        "version_name" : "13.0.0",
98
         "ts" : str(ts),
98
         "ts" : str(ts),
99
         "cpu_support64" : "true",
99
         "cpu_support64" : "true",
100
         "storage_type" : "0",
100
         "storage_type" : "0",
102
         "appTheme" : "dark",
102
         "appTheme" : "dark",
103
         "ac" : "wifi",
103
         "ac" : "wifi",
104
         "host_abi" : "armeabi-v7a",
104
         "host_abi" : "armeabi-v7a",
105
-        "update_version_code" : f'{V1}{V2}02',#"13009900",
105
+        "update_version_code" : "13009900",
106
         "channel" : "tengxun_new",
106
         "channel" : "tengxun_new",
107
         "_rticket" : rticket,
107
         "_rticket" : rticket,
108
         "device_platform" : "android",
108
         "device_platform" : "android",
109
         "iid" : str(iid),
109
         "iid" : str(iid),
110
-        "version_code" : f'{V1}{V2}0',#"130000",
110
+        "version_code" : "130000",
111
         "mac_address" : mc,
111
         "mac_address" : mc,
112
         "cdid" : "81542dc6-2aca-4ff6-ac58-d94179e9d3e6",
112
         "cdid" : "81542dc6-2aca-4ff6-ac58-d94179e9d3e6",
113
         "openudid" : str(openudid),
113
         "openudid" : str(openudid),
126
 
126
 
127
     xGorgon = X_Gorgon(query_params, body)
127
     xGorgon = X_Gorgon(query_params, body)
128
 
128
 
129
-    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)'
129
+    userAgent = f'com.ss.android.ugc.aweme/1300000 (Linux; U; Android 5.1.1; zh_CN; {device_type}; Build/LMY47V; Cronet/58.0.2991.0)'
130
 
130
 
131
     headers = {
131
     headers = {
132
         'Host': domain,
132
         'Host': domain,