fix
This commit is contained in:
parent
934d753778
commit
0065647567
@ -65,6 +65,8 @@ class htmlUtils:
|
|||||||
url_text = cls.getPathSaveHtml(curl,"read")
|
url_text = cls.getPathSaveHtml(curl,"read")
|
||||||
except:
|
except:
|
||||||
url_text = None
|
url_text = None
|
||||||
|
if url_text != None and not update:
|
||||||
|
return html.fromstring(url_text)
|
||||||
while url_text == None or update:
|
while url_text == None or update:
|
||||||
if count <= 5:
|
if count <= 5:
|
||||||
try:
|
try:
|
||||||
@ -95,7 +97,7 @@ class htmlUtils:
|
|||||||
ntfy.sendMsg(f"fail 请求失败:{curl}")
|
ntfy.sendMsg(f"fail 请求失败:{curl}")
|
||||||
exit()
|
exit()
|
||||||
break
|
break
|
||||||
return html.fromstring(url_text)
|
return url_text
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getBytes(cls, url):
|
def getBytes(cls, url):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user