Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Compose a component list based on a custom and base dict of components (typically middlewares or extensions), unless custom is already a list, in which case it's returned. """ if v is not None]
"""Convert a list of arguments like ['arg1=val1', 'arg2=val2', ...] to a dict """
"""Return the path to the closest scrapy.cfg file by traversing the current directory and its parents """ return cfgfile
"""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. """ os.environ['SCRAPY_SETTINGS_MODULE'] = cfg.get('settings', project) projdir = os.path.dirname(closest) if set_syspath and projdir not in sys.path: sys.path.append(projdir)
"""Get Scrapy config file as a SafeConfigParser"""
os.path.expanduser('~/.scrapy.cfg')] |