Sfoglia il codice sorgente

新增抓公众号粉丝

luojunhui 2 mesi fa
parent
commit
8c5c2515a5
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      applications/tasks/crawler_tasks/crawler_gzh_fans.py

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

@@ -126,7 +126,7 @@ class CrawlerGzhFans(CrawlerGzhFansBase):
             cursor_timestamp=cursor_timestamp,
         )
         base_resp = response.get("base_resp", {})
-        print(json.dumps(base_resp, indent=4, ensure_ascii=False))
+        # print(json.dumps(base_resp, indent=4, ensure_ascii=False))
         code = base_resp.get("ret")
         error_msg = base_resp.get("err_msg")
 
@@ -135,7 +135,7 @@ class CrawlerGzhFans(CrawlerGzhFansBase):
                 user_list = response.get("user_list", {}).get("user_info_list")
                 next_cursor_id = user_list[-1].get("user_openid")
                 next_cursor_timestamp = user_list[-1].get("user_create_time")
-                print(json.dumps(user_list, ensure_ascii=False, indent=4))
+                # print(json.dumps(user_list, ensure_ascii=False, indent=4))
                 await self.insert_gzh_fans_batch(account_info, user_list)
                 await self.update_gzh_cursor_info(
                     account_info["gh_id"], next_cursor_id, next_cursor_timestamp