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:
|
if count <= 3:
|
||||||
try:
|
try:
|
||||||
print(f"请求地址:{curl}")
|
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:
|
if res.status_code != 200:
|
||||||
cls.remove_HtmlCache(curl)
|
cls.remove_HtmlCache(curl)
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in new issue
Block a user