diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index f9cdb23..b0faf85 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -25,7 +25,7 @@ class htmlUtils: count = 1 #数据为空则获取数据 while url_text == None: - if count < 5: + if count < 5 and url_text == None: try: print("请求地址:",curl) res = s.get(curl,stream=True, headers=cls.headers, timeout=20)