wangkun 1 year ago
parent
commit
04e3fa15ef
1 changed files with 5 additions and 5 deletions
  1. 5 5
      gongzhonghao/gongzhonghao_author/gongzhonghao1_author.py

+ 5 - 5
gongzhonghao/gongzhonghao_author/gongzhonghao1_author.py

@@ -43,8 +43,8 @@ class GongzhonghaoAuthor1:
             "update_time": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(configs[0]["update_time"]/1000))),
             "operator": configs[0]["operator"].strip()
         }
-        for k, v in token_dict.items():
-            print(f"{k}:{type(v)}, {v}")
+        # for k, v in token_dict.items():
+        #     print(f"{k}:{type(v)}, {v}")
         return token_dict
 
     @classmethod
@@ -468,7 +468,7 @@ class GongzhonghaoAuthor1:
             if len_sheet >= 101:
                 len_sheet = 101
             Common.logger(log_type, crawler).info(f"len_sheet:{len_sheet}")
-            for i in range(4, len_sheet):
+            for i in range(5, len_sheet):
                 user_dict = cls.create_user(log_type=log_type, crawler=crawler, user_sheet=user_sheet, i=i, env=env)
                 # try:
                 Common.logger(log_type, crawler).info(f'获取 {user_dict["user_name"]} 公众号视频\n')
@@ -484,9 +484,9 @@ class GongzhonghaoAuthor1:
 
 
 if __name__ == "__main__":
-    GongzhonghaoAuthor1.get_token("author", "gongzhonghao", "prod")
+    # GongzhonghaoAuthor1.get_token("author", "gongzhonghao", "prod")
     # print(GongzhonghaoAuthor1.get_users("author", "gongzhonghao", "Bzv72P", "dev"))
     # print(get_config_from_mysql("author", "gongzhonghao", "dev", "filter", action=""))
     # print(title_like("author", "gongzhonghao", "公众号", "123", "dev"))
-    # print(GongzhonghaoAuthor1.get_user_info("author", "gongzhonghao", "幸福花朵", "dev"))
+    print(GongzhonghaoAuthor1.get_user_info("author", "gongzhonghao", "幸福花朵", "dev"))
     pass