Start spider after ending of another spider

Posted over 5 years ago by Sarkis Matinyan

Post a topic
Answered
S
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

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

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