您的位置:首页 > 其它

【scrapy】Item Pipeline

2014-07-12 18:14 330 查看
After an item has been scraped by a spider,it is sent to the Item Pipeline which process it through several components that are executed sequentially.

Each item pipeline component is a single python class that must implement the following method:

process_item(item,spider)

This method is called for every item pipeline component and must either return a Item object or raise a DropItem exception.Dropped items are no longer processed by further pipeline component.

参数:item(Item object) ——the item scraped

   spider(Spider object)——the spider which scraped the item
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: