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