module documentation
Undocumented
Function | arglist |
Convert a list of arguments like ['arg1=val1', 'arg2=val2', ...] to a dict |
Function | build |
Compose a component list from a { class: order } dictionary. |
Function | closest |
Return the path to the closest scrapy.cfg file by traversing the current directory and its parents |
Function | feed |
Undocumented |
Function | feed |
Receives feed export params (from the 'crawl' or 'runspider' commands), checks for inconsistencies in their quantities and returns a dictionary suitable to be used as the FEEDS setting. |
Function | get |
Get Scrapy config file as a ConfigParser |
Function | get |
Undocumented |
Function | init |
Initialize environment to use command-line tool from inside a project dir. This sets the Scrapy settings module and modifies the Python path to be able to locate the project module. |
def closest_scrapy_cfg(path:
Union[ str, os.PathLike]
= '.', prevpath: Optional[ Union[ str, os.PathLike]]
= None) -> str
:
(source)
¶
Return the path to the closest scrapy.cfg file by traversing the current directory and its parents
def feed_process_params_from_cli(settings, output:
List[ str]
, output_format=None, overwrite_output: Optional[ List[ str]]
= None):
(source)
¶
Receives feed export params (from the 'crawl' or 'runspider' commands), checks for inconsistencies in their quantities and returns a dictionary suitable to be used as the FEEDS setting.