File: list.py

package info (click to toggle)
python-scrapy 0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,904 kB
  • ctags: 2,981
  • sloc: python: 15,349; xml: 199; makefile: 68; sql: 64; sh: 34
file content (12 lines) | stat: -rw-r--r-- 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from scrapy.command import ScrapyCommand
from scrapy.spider import spiders

class Command(ScrapyCommand):

    requires_project = True

    def short_desc(self):
        return "List available spiders"

    def run(self, args, opts):
        print "\n".join(spiders.list())