This commit is contained in:
caiwx86 2023-01-15 21:57:41 +08:00
parent 934d753778
commit 0065647567

View File

@ -65,6 +65,8 @@ class htmlUtils:
url_text = cls.getPathSaveHtml(curl,"read")
except:
url_text = None
if url_text != None and not update:
return html.fromstring(url_text)
while url_text == None or update:
if count <= 5:
try:
@ -95,7 +97,7 @@ class htmlUtils:
ntfy.sendMsg(f"fail 请求失败:{curl}")
exit()
break
return html.fromstring(url_text)
return url_text
@classmethod
def getBytes(cls, url):