i have 2 spiders - Spider1 and Spider2. i want to run Spider2 after completion of Spider1. The scheduling doesn't help me much because i won't to start Spider2 immediately after Spider1.
Is there any easy way to do so?
0 Votes
Nestor Toledo posted
about 7 years ago
AdminBest Answer
Hi.
i have 2 spiders - Spider1 and Spider2. i want to run Spider2 after completion of Spider1. The scheduling doesn't help me much because i won't to start Spider2 immediately after Spider1.
Is there any easy way to do so?
0 Votes
Nestor Toledo posted about 7 years ago Admin Best Answer
You can use Spider signals to schedule a new job https://docs.scrapy.org/en/latest/topics/signals.html#spider-closed, on spider_closed for spider1 you can use the Jobs API to schedule spider2.
1 Votes
1 Comments
Nestor Toledo posted about 7 years ago Admin Answer
You can use Spider signals to schedule a new job https://docs.scrapy.org/en/latest/topics/signals.html#spider-closed, on spider_closed for spider1 you can use the Jobs API to schedule spider2.
1 Votes
Login to post a comment