It would probably just be easy to run two scrapy scripts at once from the OS level. Both of them should be able to save in one database. Create a shell script to invoke both scrapy scripts simultaneously:
scrapy runspider foo & scrapy runspider bar
Be sure to create this script executable with chmod +x script_name
To schedule a cronjob every 6 hours, enter crontab -e in your terminal and edit the file as follows:
* */6 * * * path/to/shell/script_name >> path/to/file.log
The first * is minutes, then hours, etc., and asterik is a wildcard. Thus, this indicates that the script is run at any time when the clock is divided by 6 or every six hours.
foxyNinja7
source share