Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schedule scrapy command scrapy crawl

I've built a crawler to crawl and extract links matching a fixed regex. Now i want to schedule the task in windows task scheduler, such that it executes the crawler using command line prompt scrapy crawl crawlername. Any help would be useful?

like image 300
sulav_lfc Avatar asked May 30 '26 09:05

sulav_lfc


1 Answers

You can create a bat file with the content:

cd path_to_scrapy_project
scrapy crawl crawlername

Then schedule this script with Windows Task Scheduler.

like image 167
bryant1410 Avatar answered Jun 02 '26 20:06

bryant1410



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!