From e48528805b79bdfa57ee2258c1154e609432b4ef Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Wed, 21 Dec 2022 04:36:14 +0800 Subject: [PATCH] fix --- utils/HtmlUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index 85c8181..ae5d0cc 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -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