|
@@ -64,7 +64,7 @@ class SphHistory:
|
|
|
if object_id:
|
|
|
continue
|
|
|
objectNonceId = obj['objectNonceId']
|
|
|
- url = "http://61.48.133.26:30001/GetFinderDownloadAddress"
|
|
|
+ url1 = "http://61.48.133.26:30001/GetFinderDownloadAddress"
|
|
|
payload = json.dumps({
|
|
|
"objectId": objectId,
|
|
|
"objectNonceId": objectNonceId
|
|
@@ -72,7 +72,7 @@ class SphHistory:
|
|
|
headers = {
|
|
|
'Content-Type': 'text/plain'
|
|
|
}
|
|
|
- response = requests.request("POST", url, headers=headers, data=payload)
|
|
|
+ response = requests.request("POST", url1, headers=headers, data=payload)
|
|
|
time.sleep(random.randint(0, 1))
|
|
|
video_obj = response.json()
|
|
|
video_url = video_obj.get('DownloadAddress')
|
|
@@ -141,6 +141,6 @@ class SphHistory:
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- # SphHistory.sph_data_info()
|
|
|
- count = sqlCollect.sph_data_info_count("郑蓝旗", "视频号")
|
|
|
- print(count)
|
|
|
+ SphHistory.sph_data_info()
|
|
|
+ # count = sqlCollect.sph_data_info_count("郑蓝旗", "视频号")
|
|
|
+ # print(count)
|