Quellcode durchsuchen

西瓜代码修改

罗俊辉 vor 1 Jahr
Ursprung
Commit
e2f150012b
2 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  1. 1 1
      xigua/xigua_author/xigua_author_test.py
  2. 7 0
      xigua/xigua_main/run_xg_author.py

+ 1 - 1
xigua/xigua_author/xigua_author_test.py

@@ -746,7 +746,7 @@ class XiGuaAuthor:
     def get_author_list(self):
         # 每轮只抓取定量的数据,到达数量后自己退出
         max_count = int(self.rule_dict.get("videos_cnt", {}).get("min", 300))
-        for user_dict in self.user_list[1: 2]:
+        for user_dict in self.user_list[2: 3]:
             self.get_video_list(user_dict)
             if self.download_count <= max_count:
                 self.get_video_list(user_dict)

+ 7 - 0
xigua/xigua_main/run_xg_author.py

@@ -74,6 +74,13 @@ def main(log_type, crawler, topic_name, group_id, env):
                     env=env,
                     message=f"调度任务:{task_dict}",
                 )
+                AliyunLogger.logging(
+                    code="1000",
+                    platform=crawler,
+                    mode=log_type,
+                    env=env,
+                    message=f"用户列表:{user_list}",
+                )
                 AliyunLogger.logging(
                     code="1000",
                     platform=crawler,