mirror of https://github.com/scrapy/scrapy.git
removed support for passing more than a single spider on 'scrapy crawl' command
This commit is contained in:
parent
436ad63930
commit
2108517ce0
|
|
@ -27,6 +27,8 @@ class Command(ScrapyCommand):
|
|||
def run(self, args, opts):
|
||||
if len(args) < 1:
|
||||
raise UsageError()
|
||||
elif len(args) > 1:
|
||||
raise UsageError("running 'scrapy crawl' with more than one spider is no longer supported")
|
||||
for spname in args:
|
||||
spider = self.crawler.spiders.create(spname, **opts.spargs)
|
||||
self.crawler.crawl(spider)
|
||||
|
|
|
|||
Loading…
Reference in New Issue