fix
This commit is contained in:
1 parent
50b424615b
commit
d7fcf19bf6
1 file changed
+1
-1
+1
-1
@@ -25,7 +25,7 @@ class htmlUtils:
|
|||||||
count = 1
|
count = 1
|
||||||
#数据为空则获取数据
|
#数据为空则获取数据
|
||||||
while url_text == None:
|
while url_text == None:
|
||||||
if count < 5:
|
if count < 5 and url_text == None:
|
||||||
try:
|
try:
|
||||||
print("请求地址:",curl)
|
print("请求地址:",curl)
|
||||||
res = s.get(curl,stream=True, headers=cls.headers, timeout=20)
|
res = s.get(curl,stream=True, headers=cls.headers, timeout=20)
|
||||||
|
|||||||
Reference in new issue
Block a user