Browse Source

修改time.time

luojunhui 4 weeks ago
parent
commit
a3641c0280
1 changed files with 1 additions and 1 deletions
  1. 1 1
      applications/tasks/crawler_tasks/crawler_toutiao.py

+ 1 - 1
applications/tasks/crawler_tasks/crawler_toutiao.py

@@ -178,7 +178,7 @@ class CrawlerToutiao(CrawlerPipeline, CrawlerToutiaoConst):
                     raise Exception(f"crawler each info failed: {e}")
 
             if has_more:
-                time.sleep(self.SLEEP_SECOND)
+                await asyncio.sleep(self.SLEEP_SECOND)
             else:
                 break