This commit is contained in:
caiwx86 2022-12-21 04:41:17 +08:00
parent e48528805b
commit ca7efc1d46

View File

@ -51,7 +51,7 @@ class htmlUtils:
if url_text != None:
return html.fromstring(url_text)
while url_text == None:
if count <= 10:
if count <= 3:
try:
print(f"请求地址:{curl}")
res = s.get(curl,stream=True, headers=cls.headers, timeout=180)