From 7ebf56e5c86dc7234973aede796d6faf0bf7c22c Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 9 Jan 2023 21:20:55 +0800 Subject: [PATCH] fix --- utils/HtmlUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index 295d83a..cedb507 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -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