fix
This commit is contained in:
parent
1a17ea9d17
commit
e48528805b
@ -55,7 +55,7 @@ class htmlUtils:
|
||||
try:
|
||||
print(f"请求地址:{curl}")
|
||||
res = s.get(curl,stream=True, headers=cls.headers, timeout=180)
|
||||
time.sleep(3)
|
||||
time.sleep(0.3)
|
||||
if type == "bytes":
|
||||
url_text = res
|
||||
if type == "json":
|
||||
@ -66,7 +66,7 @@ class htmlUtils:
|
||||
cls.saveHtml(curl,res.text)
|
||||
except:
|
||||
print(f'Retry! 第{count}次')
|
||||
time.sleep(3)
|
||||
time.sleep(1)
|
||||
traceback.print_exc()
|
||||
count += 1
|
||||
continue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user