mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 12:44:06 +00:00
Merge pull request #742 from dangra/sort-scrapy-list
sort spiders in "scrapy list" cmd.
This commit is contained in:
commit
9a4ee20991
@ -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…
x
Reference in New Issue
Block a user