Browse Source

新增公众新号-调试

zhangyong 1 year ago
parent
commit
78f017aac9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gongzhongxinhao/gongzhongxinhao/gongzhongxinhao_author.py

+ 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']