fix
This commit is contained in:
parent
50b424615b
commit
d7fcf19bf6
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user