fix
This commit is contained in:
1 parent
0065647567
commit
ea6b8bd8cc
1 file changed
+4
-2
+4
-2
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user