Ver código fonte

update strategy type

ehlxr 1 ano atrás
pai
commit
5671b0e94b

+ 1 - 0
kuaishou/kuaishou_author/kuaishou_author_scheduling.py

@@ -209,6 +209,7 @@ class KuaishouauthorScheduling:
                         video_dict["crawler_rule"] = json.dumps(rule_dict)
                         video_dict["user_id"] = user_dict["uid"]
                         video_dict["publish_time"] = video_dict["publish_time_str"]
+                        video_dict["strategy_type"] = log_type
                         mq.send_msg(video_dict)
                         # cls.download_publish(log_type=log_type,
                         #                      crawler=crawler,

+ 1 - 0
kuaishou/kuaishou_recommend/kuaishou_recommend_cut_title.py

@@ -184,6 +184,7 @@ class KuaiShouRecommendScheduling:
                                 video_dict["crawler_rule"] = json.dumps(rule_dict)
                                 video_dict["user_id"] = our_uid
                                 video_dict["publish_time"] = video_dict["publish_time_str"]
+                                video_dict["strategy_type"] = log_type
 
                                 mq.send_msg(video_dict)
 

+ 1 - 1
xigua/xigua_author/xigua_author_scheduling.py

@@ -637,7 +637,7 @@ class XiguaauthorScheduling:
                         video_dict["crawler_rule"] = json.dumps(rule_dict)
                         video_dict["user_id"] = user_dict["uid"]
                         video_dict["publish_time"] = video_dict["publish_time_str"]
-
+                        video_dict["strategy_type"] = log_type
                         mq.send_msg(video_dict)
                 except Exception as e:
                     Common.logger(log_type, crawler).error(f"抓取单条视频异常:{e}\n")