Explorar o código

账号抓取v1 提交

luojunhui hai 4 meses
pai
achega
2cfe05559d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      coldStartTasks/crawler/weixin_account_crawler.py

+ 3 - 3
coldStartTasks/crawler/weixin_account_crawler.py

@@ -23,7 +23,7 @@ class WeixinAccountCrawler(object):
     def __init__(self):
         self.db_client = longArticlesMySQL()
         self.spider = WeixinSpider()
-        self.account_count = 0
+        self.crawler_account_count = 0
 
     def get_inner_account_name(self) -> Set[str]:
         """
@@ -125,7 +125,7 @@ class WeixinAccountCrawler(object):
                                 "account_name": account_name
                             }
                         )
-                        self.account_count += 1
+                        self.crawler_account_count += 1
                 except Exception as e:
                     log(
                         task="account_crawler_v1",
@@ -168,7 +168,7 @@ class WeixinAccountCrawler(object):
         bot(
             title="微信账号抓取完成",
             detail={
-                "总更新账号数量": self.account_count,
+                "总更新账号数量": self.crawler_account_count,
                 "总耗时": time.time() - start_time,
                 "种子标题数量": len(title_list)
             },