add time_sleep
This commit is contained in:
1 parent
1246f6a4b2
commit
fddefe0af2
1 file changed
+1
@@ -30,6 +30,7 @@ class htmlUtils:
|
|||||||
try:
|
try:
|
||||||
print(f"请求地址:{curl}")
|
print(f"请求地址:{curl}")
|
||||||
res = s.get(curl,stream=True, headers=cls.headers, timeout=180)
|
res = s.get(curl,stream=True, headers=cls.headers, timeout=180)
|
||||||
|
time.sleep(3)
|
||||||
if type == "bytes":
|
if type == "bytes":
|
||||||
url_text = res
|
url_text = res
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user