Scrapy框架为文件和图片的下载专门提供了两个Item Pipeline 它们分别是:
FilePipeline
ImagesPipeline
这里主要介绍ImagesPipeline!!
这次我们要爬的是 汽车之家:car.autohome.com.cn
最近喜欢吉利博越,所以看了不少这款车的资料。。。。
我们就点开博越汽车的图片网站:
https://car.autohome.com.cn/pic/series/3788.html
在上面的基础上修改
将会得到与原来相同的结果!!!!
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!