Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

removed support for passing more than a single spider on 'scrapy crawl' command

Pablo Hoffman2108517ce020
diff --git a/scrapy/commands/crawl.py b/scrapy/commands/crawl.py
index 07409be1a..f97f907ee 100644
--- a/scrapy/commands/crawl.py
+++ b/scrapy/commands/crawl.py
@@ -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)