mirror of https://github.com/scrapy/scrapy.git
17 lines
495 B
Python
17 lines
495 B
Python
from scrapy.command import ScrapyCommand
|
|
from scrapy.core.manager import scrapymanager
|
|
from scrapy.utils.misc import load_object
|
|
from scrapy.conf import settings
|
|
|
|
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):
|
|
queue_class = load_object(settings['SERVICE_QUEUE'])
|
|
scrapymanager.queue = queue_class()
|
|
scrapymanager.start()
|