class documentation

class Command(ScrapyCommand):

View In Hierarchy

Undocumented

Method ​_copytree Since the original function always creates the directory, to resolve the issue a new function had to be created. It's a simple copy and was reduced for this case.
Method ​_is​_valid​_name Undocumented
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

Inherited from ScrapyCommand:

Method __init__ Undocumented
Method add​_options Populate option parse with options available for this command
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 ​_crawler Undocumented
Instance Variable settings Undocumented
def _copytree(self, src, dst):

Since the original function always creates the directory, to resolve the issue a new function had to be created. It's a simple copy and was reduced for this case.

More info at: https://github.com/scrapy/scrapy/pull/2005

def _is_valid_name(self, project_name):

Undocumented

def run(self, args, opts):
Entry point for running commands
def short_desc(self):
A short description of the command
def syntax(self):
Command syntax (preferably one-line). Do not include command name.
default_settings: dict[str, bool] =
requires_project: bool =
exitcode: int =
@property
templates_dir =

Undocumented