Ejemplo n.º 1
0
def register_pipelines(pipelines):
    project_name = utils.get_project_name()
    item_pipelines = {}
    for pipeline, priority in pipelines.iteritems():
        pipeline_path = generate_path(project_name, pipeline)
        item_pipelines[pipeline_path] = priority
    return item_pipelines
Ejemplo n.º 2
0
def register_spiders(*args):
    project_name = utils.get_project_name()
    spider_modules = []
    for spider_name in args:
        module_path = generate_path(project_name, spider_name)
        spider_modules.append(module_path)
    return spider_modules