scrapy不同的item指定不同的Pipeline
from items import AspiderItem, BspiderItem, CspiderItem class myspiderPipeline(object): def __init__(self): pass def process_item(self, item, spider): if isinstance(item, AspiderItem): pass elif isinstance(item, BspiderItem): return item elif isinstance(item, CspiderItem): print item