This commit is contained in:
caiwx86 2022-12-08 07:59:03 +08:00
parent c0a1bb1517
commit 060622d959

View File

@ -61,6 +61,8 @@ class htmlUtils:
data_json = res.json() data_json = res.json()
except: except:
count += 1 count += 1
print(f"请求失败,第{count}次重试中...")
time.sleep(1)
cls.getJSON(curl) cls.getJSON(curl)
return data_json return data_json