From ab5d4664a3a8a375a550be78eb42b7a56f757fbc Mon Sep 17 00:00:00 2001 From: bvwl <2201101122@qq.com> Date: Sun, 30 Nov 2025 09:27:15 +0800 Subject: [PATCH] 0.2.2 --- spider/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spider/main.py b/spider/main.py index c9c1921..51a6b52 100644 --- a/spider/main.py +++ b/spider/main.py @@ -647,7 +647,7 @@ def proxy_loop(proxy: str, stop_event: threading.Event) -> None: while not stop_event.is_set(): try: if is_forbidden_time(): - if stop_event.wait(timeout=300): + if stop_event.wait(timeout=60): break cleanup_all_browsers() secs = seconds_until(20, 0) @@ -792,7 +792,7 @@ def main(): restart_event = threading.Event() if is_forbidden_time(): - if stop_event.wait(timeout=300): + if stop_event.wait(timeout=60): continue cleanup_all_browsers() logger.info("处于禁跑时段,等待至禁跑结束")