zhangyong 4 miesięcy temu
rodzic
commit
01f2db9af7
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6 6
      video_count_notification.py

+ 6 - 6
video_count_notification.py

@@ -153,15 +153,15 @@ def bot_carry_data():
 def schedule_tasks():
     schedule.every().hour.at(":05").do(bot_carry_data)
     schedule.every().hour.at(":10").do(bot_crawler_data)
-
+    schedule.every().hour.at(":08").do(bot_bygj_data)
 
 
 if __name__ == "__main__":
-    bot_bygj_data()
+    # bot_bygj_data()
     # bot_crawler_data()
-    # schedule_tasks()  # 调用任务调度函数
-    # while True:
-    #     schedule.run_pending()
-    #     time.sleep(1)  # 每秒钟检查一次
+    schedule_tasks()  # 调用任务调度函数
+    while True:
+        schedule.run_pending()
+        time.sleep(1)  # 每秒钟检查一次
     # bot_carry_data()