Run Multiple Spider sequentially
<pre><code>Class Myspider1
#do something....

Class Myspider2
#do something...
</code></pre>

<p>The above is the architecture of my spider.py file. and i am trying to run the Myspider1 first and then run the Myspider2 multiples times depend on some conditions. How Could I do that??? any tips? </p>

<pre><code>configure_logging()
runner = CrawlerRunner()
def crawl():
    yield runner.crawl(Myspider1,arg.....)
    yield runner.crawl(Myspider2,arg.....)
crawl()
reactor.run()
</code></pre>

<p>I am trying to use this way.but have no idea how to run it. Should I run the cmd on the cmd(what commands?) or just run the python file??</p>

<p>thanks a lot!!!</p>