|
@@ -278,19 +278,17 @@ class XiaoniangaoAuthorScheduling:
|
|
|
@classmethod
|
|
|
def get_author_videos(cls, log_type, crawler, user_list, rule_dict, env):
|
|
|
for user_dict in user_list:
|
|
|
- # try:
|
|
|
- Common.logger(log_type, crawler).info(f"获取 {user_dict['nick_name']} 主页视频")
|
|
|
- cls.get_videoList(log_type=log_type,
|
|
|
- crawler=crawler,
|
|
|
- rule_dict=rule_dict,
|
|
|
- user_dict=user_dict,
|
|
|
- env=env)
|
|
|
- # except Exception as e:
|
|
|
- # Common.logger(log_type, crawler).error(f"抓取{user_dict['nick_name']}主页时异常:{e}\n")
|
|
|
+ try:
|
|
|
+ Common.logger(log_type, crawler).info(f"获取 {user_dict['nick_name']} 主页视频")
|
|
|
+ cls.get_videoList(log_type=log_type,
|
|
|
+ crawler=crawler,
|
|
|
+ rule_dict=rule_dict,
|
|
|
+ user_dict=user_dict,
|
|
|
+ env=env)
|
|
|
+ except Exception as e:
|
|
|
+ Common.logger(log_type, crawler).error(f"抓取{user_dict['nick_name']}主页时异常:{e}\n")
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- # print(XiaoniangaoAuthorScheduling.repeat_video("follow", "xiaoniangao", "4919087666", "prod", "aliyun"))
|
|
|
- # print(XiaoniangaoAuthorScheduling.repeat_video("follow", "xiaoniangao", "4919087666", "dev"))
|
|
|
- # XiaoniangaoAuthorScheduling.get_users()
|
|
|
+
|
|
|
pass
|