Browse Source

xng 加速监测减短时间

罗俊辉 1 year ago
parent
commit
d8ff17da62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spider/crawler_author/xiaoniangao.py

+ 1 - 1
spider/crawler_author/xiaoniangao.py

@@ -299,7 +299,7 @@ async def periodic_task():
     while True:
         rule = get_task_rule()
         await run_spider(rule_dict=rule)  # 直接在当前事件循环中运行异步任务
-        wait_time = random.randint(20 * 60, 40 * 60)
+        wait_time = random.randint(10 * 60, 20 * 60)
         await asyncio.sleep(wait_time)  # 随机等待 20-40min