No recent searches
Popular Articles
Sorry! nothing found for
Posted over 5 years ago by Sarkis Matinyan
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 posted over 5 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 posted over 5 years ago Admin Answer
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
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 posted over 5 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 posted over 5 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