Browse Source

修改西瓜规则

罗俊辉 1 year ago
parent
commit
252efa5b31
1 changed files with 11 additions and 1 deletions
  1. 11 1
      xigua/xigua_author/xigua_author.py

+ 11 - 1
xigua/xigua_author/xigua_author.py

@@ -684,7 +684,17 @@ class XiGuaAuthor:
         # max_count = int(self.rule_dict.get("videos_cnt", {}).get("min", 300))
         for user_dict in self.user_list:
             # if self.download_count <= max_count:
-            self.get_video_list(user_dict)
+            try:
+                self.get_video_list(user_dict)
+            except Exception as e:
+                AliyunLogger.logging(
+                    code="3001",
+                    account=user_dict["uid"],
+                    platform=self.platform,
+                    mode=self.mode,
+                    env=self.env,
+                    message="扫描账号时出现bug, 报错是 {}".format(e)
+                )
             #     time.sleep(random.randint(1, 15))
             # else:
             #     AliyunLogger.logging(