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)