mirror of https://github.com/scrapy/scrapy.git
13 lines
330 B
Python
13 lines
330 B
Python
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(keep_alive=True)
|