This commit is contained in:
caiwx86 2022-12-08 08:02:55 +08:00
parent 060622d959
commit 0eea194268

View File

@ -63,7 +63,8 @@ class htmlUtils:
count += 1
print(f"请求失败,第{count}次重试中...")
time.sleep(1)
cls.getJSON(curl)
res = requests.get(curl, headers=cls.headers,timeout=30)
data_json = res.json()
return data_json
@classmethod