From ca7efc1d46aa0e732e4507f43a66ecaf6560fe1b Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Wed, 21 Dec 2022 04:41:17 +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 ae5d0cc..f0cc141 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -51,7 +51,7 @@ class htmlUtils: if url_text != None: return html.fromstring(url_text) while url_text == None: - if count <= 10: + if count <= 3: try: print(f"请求地址:{curl}") res = s.get(curl,stream=True, headers=cls.headers, timeout=180)