mirror of https://github.com/scrapy/scrapy.git
minor code simplification
This commit is contained in:
parent
7afedb89e9
commit
e8eacd6f9e
|
|
@ -39,7 +39,7 @@ class Command(ScrapyCommand):
|
|||
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)
|
||||
spname = args[0]
|
||||
spider = self.crawler.spiders.create(spname, **opts.spargs)
|
||||
self.crawler.crawl(spider)
|
||||
self.crawler.start()
|
||||
|
|
|
|||
Loading…
Reference in New Issue