This commit is contained in:
caiwx86 2023-01-15 21:59:35 +08:00
parent 0065647567
commit ea6b8bd8cc

View File

@ -65,9 +65,11 @@ class htmlUtils:
url_text = cls.getPathSaveHtml(curl,"read")
except:
url_text = None
if url_text != None and not update:
if url_text != None and update == False:
return html.fromstring(url_text)
while url_text == None or update:
else:
url_text = None
while url_text == None:
if count <= 5:
try:
print(f"请求地址:{curl}")