From d7fcf19bf684ac91ae9ac412be16bf3f87b03020 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Fri, 9 Dec 2022 12:36:36 +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 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)