Skip to content

Instantly share code, notes, and snippets.

/mutil_pipelines.py
Created Jul 4, 2017

Embed
What would you like to do?
# settings.py
ITEM_PIPELINES = {
'xxx.pipelines.Pipeline1': 200,
'xxx.pipelines.Pipeline2': 300,
}
# pipelines.py
class Pipeline1(object):
# 处理yield过来的item
# 写入商品表
pass
class Pipeline2(object):
# 处理yield过来的item
# 写入店铺表
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.