Start a new topic
Answered

Start spider after ending of another spider

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?


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 Comment

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 person likes this
Login to post a comment