ks_qpl_main.py 475 B

12345678910111213141516171819202122232425
  1. import schedule
  2. import time
  3. from data_channel.cljx_nrxs import CLJX
  4. # from data_channel.qpl_ks import QplKs
  5. def video_start():
  6. print("任务开始...")
  7. try:
  8. CLJX.get_nrxs()
  9. print("任务成功完成")
  10. except Exception as e:
  11. print(f"任务执行过程中发生错误: {e}")
  12. print("任务结束")
  13. # 每天早上 6 点执行
  14. schedule.every().day.at("06:00").do(video_start)
  15. while True:
  16. schedule.run_pending()
  17. time.sleep(1)