|
@@ -44,13 +44,14 @@ def clean_title(strings):
|
|
|
|
|
|
|
|
|
class ZLNYLScheduling:
|
|
|
- def __init__(self, log_type, crawler, category, rule_dict, env):
|
|
|
+ def __init__(self, log_type, crawler, category, rule_dict, env, our_uid):
|
|
|
self.platform = "中老年娱乐"
|
|
|
self.log_type = log_type
|
|
|
self.crawler = crawler
|
|
|
self.category = category
|
|
|
self.rule_dict = rule_dict
|
|
|
self.env = env
|
|
|
+ self.our_uid = our_uid
|
|
|
self.mq = MQ(topic_name="topic_crawler_etl_" + self.env)
|
|
|
self.download_count = 0
|
|
|
|
|
@@ -175,7 +176,7 @@ class ZLNYLScheduling:
|
|
|
video_dict["width"] = video_dict["video_width"]
|
|
|
video_dict["height"] = video_dict["video_height"]
|
|
|
video_dict["crawler_rule"] = json.dumps(self.rule_dict)
|
|
|
- video_dict["user_id"] = "-1"
|
|
|
+ video_dict["user_id"] = self.our_uid
|
|
|
video_dict["publish_time"] = video_dict["publish_time_str"]
|
|
|
d_obj = self.find_video_url(video_id)
|
|
|
video_dict["video_url"] = d_obj["url"]
|