class documentation

Undocumented

Method add_options Populate option parse with options available for this command
Method run Entry point for running commands
Method short_desc A short description of the command
Method syntax Command syntax (preferably one-line). Do not include command name.
Class Variable default_settings Undocumented
Class Variable requires_project Undocumented
Instance Variable exitcode Undocumented
Property templates_dir Undocumented
Method _find_template Undocumented
Method _genspider Generate the spider module, based on the given template
Method _list_templates Undocumented
Method _spider_exists Undocumented

Inherited from ScrapyCommand:

Method __init__ Undocumented
Method help An extensive help for the command. It will be shown when using the "help" command. It can contain newlines since no post-formatting will be applied to its contents.
Method long_desc A long description of the command. Return short description when not available. It cannot contain newlines since contents will be formatted by optparser which removes newlines and wraps text.
Method process_options Undocumented
Method set_crawler Undocumented
Class Variable crawler_process Undocumented
Instance Variable settings Undocumented
Instance Variable _crawler Undocumented
def add_options(self, parser): (source)

Populate option parse with options available for this command

def run(self, args, opts): (source)

Entry point for running commands

def short_desc(self): (source)

A short description of the command

def syntax(self): (source)

Command syntax (preferably one-line). Do not include command name.

@property
templates_dir: str = (source)

Undocumented

def _find_template(self, template: str) -> Optional[Path]: (source)

Undocumented

def _genspider(self, module, name, domain, template_name, template_file): (source)

Generate the spider module, based on the given template

def _list_templates(self): (source)

Undocumented

def _spider_exists(self, name: str) -> bool: (source)

Undocumented