|
@@ -215,6 +215,7 @@ class GZXHAuthor:
|
|
|
|
|
|
def process_video_obj(self, article, user_name, wechat_gh):
|
|
|
trace_id = self.platform + str(uuid.uuid1())
|
|
|
+ update_time_stamp = int(time.time())
|
|
|
publish_time_str = article.get("published_time", 0)
|
|
|
date_format = "%Y-%m-%d %H:%M:%S"
|
|
|
date_time_obj = datetime.strptime(publish_time_str, date_format)
|
|
@@ -232,6 +233,7 @@ class GZXHAuthor:
|
|
|
.replace("'", ""),
|
|
|
"out_video_id": video_id,
|
|
|
"publish_time_stamp": publish_time_stamp,
|
|
|
+ "update_time_stamp": update_time_stamp,
|
|
|
"publish_time_str": publish_time_str,
|
|
|
"play_cnt": 0,
|
|
|
"comment_cnt": 0,
|
|
@@ -243,7 +245,7 @@ class GZXHAuthor:
|
|
|
"width": 0,
|
|
|
"height": 0,
|
|
|
"duration": 0,
|
|
|
- "platform": self.platform,
|
|
|
+ "platform": 'gongzhonghao',
|
|
|
"strategy": self.mode,
|
|
|
"crawler_rule": self.rule_dict,
|
|
|
"session": f"gongzhongxinhao-author-{int(time.time())}",
|