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

最新文章

  1. easyUI时间控件 使用
  2. CC1310的RSSI值问题
  3. Microsoft Orleans 之 入门指南
  4. Sql Server之旅——第三站 解惑那些背了多年聚集索引的人
  5. AWstat(linux下)
  6. get方法与post方法的使用
  7. JNI_最简单的Java调用C/C++代码
  8. JavaScript编程:文档对象模型DOM
  9. 201521123042 《Java程序设计》第3周学习总结
  10. Mysql-自带的一些功能,基本用法(视图,触发器,事务,存储过程,函数,流程控制)
  11. 经典卷积神经网络结构——LeNet-5、AlexNet、VGG-16
  12. .node 文件require时候显示Error: The specified module could not be found
  13. Linux磁盘故障案例
  14. VS2008安装“Visual Studio Web 创作组件”安装失败的解决方法
  15. CentOS7 网络NAT模式
  16. Shell脚本 | 性能测试之CPU占有率
  17. Jmeter(二十八)_Docker+Jmeter+Gitlab+Jenkins+Ant(容器化的接口自动化持续集成平台)
  18. java中synchronized 用在实例方法和对象方法上面的区别
  19. java笔记--关于多线程如何查看JVM中运行的线程
  20. [Database] MongoDB 副本集配置

热门文章

  1. C ++ _多线程笔记
  2. C ++ _基础之共用体
  3. python猜年龄游戏升级版
  4. 单片微机原理P1:80C51指令系统和编程方法
  5. C和C++中动态链接库的创建和链接(原创,装载请注明原处)
  6. 洛谷—— P1268 树的重量
  7. Linux用户和组的概念
  8. qt5.5.1配置winpcap4.1.2
  9. 条款20:宁以pass-by-reference-to-const替换pass-by-value(Prefer pass-by-reference-to-const to pass-by-value)
  10. python中unicode, hex, bin之间的转换