Pārlūkot izejas kodu

新增公众新号-调试

zhangyong 1 gadu atpakaļ
vecāks
revīzija
78f017aac9

+ 3 - 0
gongzhongxinhao/gongzhongxinhao/gongzhongxinhao_author.py

@@ -271,6 +271,8 @@ class GZXHAuthor:
         if not pipeline.repeat_video():
             return True
         else:
+            current_time = datetime.now()
+            timestamp = current_time.strftime("%Y-%m-%d %H:%M:%S")
             values = [[
                 user_name,
                 video_id,
@@ -279,6 +281,7 @@ class GZXHAuthor:
                     .replace('"', "")
                     .replace("'", ""),
                 publish_time_str,
+                timestamp,
                 video_url,
                 article.get("head_pic", ""),
                 self.user_dict['link']