Skip to content

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

sort spiders in "scrapy list" cmd. closes #736

Daniel Grañaf6d48213f688
diff --git a/scrapy/commands/list.py b/scrapy/commands/list.py
index f08d57f6f..0ea9c2313 100644
--- a/scrapy/commands/list.py
+++ b/scrapy/commands/list.py
@@ -11,5 +11,5 @@ class Command(ScrapyCommand):
def run(self, args, opts):
crawler = self.crawler_process.create_crawler()
- for s in crawler.spiders.list():
+ for s in sorted(crawler.spiders.list()):
print(s)