Downloading pictures with scrapy

前端 未结 2 2036
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 05:17

I\'m starting with scrapy, and I have first real problem. It\'s downloading pictures. So this is my spider.

from scrapy.contrib.spiders import CrawlSpider, R         


        
2条回答
  •  甜味超标
    2020-12-16 05:39

    I think that you may need to provide your image url in a list to the Item:

    item['image_urls'] = [ 'http://www.domain.com' + item['image_urls'] ]
    

提交回复
热议问题