Parcourir la source

新增抓公众号粉丝

luojunhui il y a 2 mois
Parent
commit
989ad37f8c

+ 12 - 0
applications/config/mysql_config.py

@@ -45,3 +45,15 @@ piaoquan_crawler_db_config = {
     "minsize": 5,
     "maxsize": 20,
 }
+
+# growth 数据库配置
+growth_db_config = {
+    "host": "rm-bp17q95335a99272b.mysql.rds.aliyuncs.com",
+    "port": 3306,
+    "user": "crawler",
+    "password": "crawler123456@",
+    "db": "growth",
+    "charset": "utf8mb4",
+    "minsize": 5,
+    "maxsize": 20,
+}

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

@@ -75,7 +75,7 @@ class CrawlerGzhFansBase(CrawlerGzhFansConst):
     async def get_account_list_from_database(self):
         query = """
             SELECT gh_id, account_name, app_id, app_secret, cursor_openid, cursor_timestamp, crawl_history_status
-            FROM gzh_account_info WHERE status = %s and gh_id != 'gh_77f36c109fb1'; 
+            FROM gzh_account_info WHERE status = %s; 
         """
         return await self.pool.async_fetch(query=query, params=(self.AVAILABLE_STATUS,))