fix
This commit is contained in:
1 parent
ca818581b8
commit
7ebf56e5c8
1 file changed
+1
-1
+1
-1
@@ -67,7 +67,7 @@ class htmlUtils:
|
||||
if count <= 3:
|
||||
try:
|
||||
print(f"请求地址:{curl}")
|
||||
res = s.get(curl,stream=True, headers=cls.headers, timeout=180,allow_redirects=True)
|
||||
res = s.get(curl,stream=True, headers=cls.headers, timeout=30,allow_redirects=True)
|
||||
if res.status_code != 200:
|
||||
cls.remove_HtmlCache(curl)
|
||||
return None
|
||||
|
||||
Reference in new issue
Block a user