File: start.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-- 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from scrapy.command import ScrapyCommand
from scrapy.core.manager import scrapymanager

class Command(ScrapyCommand):

    requires_project = True

    def short_desc(self):
        return "Start the Scrapy manager but don't run any spider (idle mode)"

    def run(self, args, opts):
        scrapymanager.start(*args)