This commit is contained in:
cwx committed 2022-12-09 12:36:36 +08:00
1 parent 50b424615b
commit d7fcf19bf6
1 file changed
+1 -1
+1 -1
View File
@@ -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)