Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2017 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5144f7c92747ace585443497a5dd9868 to your computer and use it in GitHub Desktop.
Save anonymous/5144f7c92747ace585443497a5dd9868 to your computer and use it in GitHub Desktop.
# 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