-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
如何定时自动执行 #22
Comments
程序本身支持通过命令行方式执行, 所以可以通过操作系统本身自带的定时程序来运行程序,举例说明: Windows定时执行方式请往下继续看文字版或者看此B站教程:https://www.bilibili.com/video/BV1N94y1a7Lp/ MacOS或Linux下通过以下命令直接执行任务:
则我们可以在任意目录下,如
则我们可以直接将此脚本放入
设置规则,如每12小时执行一次:
即可完成定时执行。 记得EasySpider本体程序不要关(即下图),否则连不上本地服务器: 可以看下面的MacOS的执行示例: |
好的了解了,我去找找windows上的替代品 |
Windows定时执行方式请往下继续看文字版或者看此B站教程:https://www.bilibili.com/video/BV14V4y1m7iL/ Windows上先建立一个
然后通过以下教程设置计划任务定时执行此 如果将上面的 |
Windows x64下想要使用命令行执行程序,需要以下操作:
其中, Windows x32位下使用命令行,只需将上面命令路径中的
|
mac 有没有办法实现,不打开程序本体的情况下,执行任务呢,像 Windows 一样,我试了把 --read_type local 改成这种,貌似不行 |
MacOS需要在easyspider_executestage同级文件夹建立一个tasks文件夹,然后把任务的.json文件拷贝进来,也就是你执行任务时候提示的Application Support/EasySpider/tasks文件夹里的.json文件,然后--read_type local即可。 |
No description provided.
The text was updated successfully, but these errors were encountered: