Browse Source

更新代码问题

dzr 5 tháng trước cách đây
mục cha
commit
f11564fc27
3 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 2 2
      ybw_details.py
  2. 2 2
      ybw_query_list.py
  3. 1 1
      ybw_release_account.py

+ 2 - 2
ybw_details.py

@@ -274,7 +274,7 @@ class DetailSpider:
         return False
 
     def start(self):
-        logger.debug(" *** start ***")
+        logger.info(" *** start ***")
 
         query = {"crawl_status": {"$exists": False}, "es_count": 0}
         sort = [('publishtime', -1)]
@@ -317,7 +317,7 @@ class DetailSpider:
 
                 time.sleep(random.randint(80, 180))
 
-        logger.debug(" *** end ***")
+        logger.info(" *** end ***")
 
 
 if __name__ == '__main__':

+ 2 - 2
ybw_query_list.py

@@ -143,7 +143,7 @@ class Spider:
         logger.warning(f"[检索失败] {key}")
 
     def start(self, query_date):
-        logger.debug("********** 检索开始 **********")
+        logger.info("********** 检索开始 **********")
 
         data_sets = {
             "中国移动河南分公司",
@@ -171,7 +171,7 @@ class Spider:
                 for page in range(2, self.crawl_page + 1):
                     self.crawl_list_spider(page, key, query_date)
 
-        logger.debug("********** 检索结束 **********")
+        logger.info("********** 检索结束 **********")
 
 
 if __name__ == '__main__':

+ 1 - 1
ybw_release_account.py

@@ -17,7 +17,7 @@ if __name__ == '__main__':
                 {"$set": {
                     "count": 0,
                     "login_times": 0,
-                    "update_time": update_date()
+                    "update_time": update_date
                 }}
             )
             logger.info(f" {item['account']} 已更新 < {update_date} >")