摘要: ### 设置scrapy爬虫开启和关闭时的动作。 pipelines.py ### class DemoPipeline(object): # 开启爬虫时执行,只执行一次 def open_spider(self, spider): # 为spider对象动态添加属性,可以在spider模块中获取该 阅读全文
posted @ 2021-11-12 19:33 技术改变命运Andy 阅读(731) 评论(0) 推荐(0) 编辑