소스 검색

西瓜代码修改

罗俊辉 1 년 전
부모
커밋
e2f150012b
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  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,