|
@@ -70,9 +70,14 @@ class SPH:
|
|
|
|
|
|
response = requests.request("POST", url, headers=headers, data=payload)
|
|
|
time.sleep(random.randint(1, 5))
|
|
|
+ res_json = response.json()
|
|
|
+ try:
|
|
|
+ if len(res_json["DownloadAddress"]) == 0 or res_json["DownloadAddress"] == "" or res_json["DownloadAddress"] == None:
|
|
|
+ return list
|
|
|
+ except:
|
|
|
+ pass
|
|
|
if "objectId" not in response.text or response.status_code != 200:
|
|
|
continue
|
|
|
- res_json = response.json()
|
|
|
if len(res_json["UpMasterHomePage"]) == 0:
|
|
|
continue
|
|
|
if not res_json["UpMasterHomePage"]:
|