mirror of https://github.com/scrapy/scrapy.git
sort spiders in "scrapy list" cmd. closes #736
This commit is contained in:
parent
1c9effd7b4
commit
f6d48213f6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue