|
@@ -37,6 +37,8 @@ class SphHistory:
|
|
|
|
|
|
response = requests.request("POST", url, headers=headers, data=payload)
|
|
response = requests.request("POST", url, headers=headers, data=payload)
|
|
time.sleep(random.randint(1, 5))
|
|
time.sleep(random.randint(1, 5))
|
|
|
|
+ if response.text == "" or response.text == None:
|
|
|
|
+ break
|
|
res_json = response.json()
|
|
res_json = response.json()
|
|
try:
|
|
try:
|
|
if len(res_json["DownloadAddress"]) == 0 or res_json["DownloadAddress"] == "" or res_json["DownloadAddress"] == None:
|
|
if len(res_json["DownloadAddress"]) == 0 or res_json["DownloadAddress"] == "" or res_json["DownloadAddress"] == None:
|
|
@@ -130,6 +132,6 @@ class SphHistory:
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
-
|
|
+ SphHistory.sph_data_info()
|
|
- count = sqlCollect.sph_data_info_count("郑蓝旗", "视频号")
|
|
+
|
|
- print(count)
|
|
+
|