fixt
This commit is contained in:
1 parent
060622d959
commit
0eea194268
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user