Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(小白求教)请教,如何实现自动定时运行? #87

Open
realcsnake2023 opened this issue Dec 6, 2024 · 2 comments
Open

Comments

@realcsnake2023
Copy link

realcsnake2023 commented Dec 6, 2024

非常感谢acepage大佬。
我是小白一个,但按照说明一步一步操作,居然更新cookie成功了,虽然并不知道怎么回事。那么,有了新的问题,就是这个代码如何实现定时执行呢?代码里有一句是:

# 定时器
cron_expression = "0 5-6 * * *"

但如何实现自动在每天5点和6点运行呢?这个就不懂了,是什么都不需要配置呢?还是需要执行某一个管理定时任务的进程?
希望能得到帮助。谢谢!!!

@realcsnake2023
Copy link
Author

我又仔细看了说明,按这上面的方法运行了,如下提示,应该是可以了吗?
Screenshot 2024-12-07 001441

@yy1319hua
Copy link

我又仔细看了说明,按这上面的方法运行了,如下提示,应该是可以了吗? Screenshot 2024-12-07 001441

是的可以了,定时设置好就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants