소스 검색

切换持久化数据表

dongzhaorui 1 년 전
부모
커밋
621ad65492
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ybw/list_spider2.py

+ 1 - 1
ybw/list_spider2.py

@@ -151,7 +151,7 @@ def main():
 
     dedup = RedisFilter()  # 默认过期时间1年
     to_mongodb = MongoClient(setting.MONGO_IP, setting.MONGO_PORT)
-    collection = to_mongodb[setting.MONGO_DB]['ybw_list']
+    collection = to_mongodb[setting.MONGO_DB]['ybw_list02']
 
     with ThreadPoolExecutor(max_workers=5) as tpool:
         fs = []