Reputation: 57
I'm crawling a blog using Scrapy using the command "scrapy crawl posts". I need to check for new posts every 5 minutes. How can I do it?
Thanks in advance.
Upvotes: 0
Views: 1200
Reputation:
Edit your /etc/crontab
file to include this line. It will setup your script to run every 5 minutes.
*/5 * * * * unix-username cd /your/path/to/scrapy-project/;scrapy crawl posts
For windows you can take a look at the answer mentioned here
Upvotes: 1