瀏覽代碼

视频号抓取时间戳bugfix

luojunhui 2 月之前
父節點
當前提交
a4329fc8e3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tasks/crawler_channel_account_videos.py

+ 1 - 0
tasks/crawler_channel_account_videos.py

@@ -103,6 +103,7 @@ class CrawlerChannelAccountVideos:
         video_item.add("out_account_name", video["nickname"])
         video_item.add("publish_timestamp", video["createtime"])
         video_item.add("platform", "sph")
+        video_item.add("crawler_timestamp", int(time.time()))
         media = object_desc["media"][0]
         url = media["Url"]
         decode_key = media["decodeKey"]