Scrapy not downloading images and getting pipeline error
问题 I have this code class MyImagesPipeline(ImagesPipeline): def get_media_requests(self, item, info): for image_url in item['image_urls']: yield Request(image_url) and this is the spider subclassed from BaseSpider. This basespider is giving me nightmare def parse(self, response): hxs = HtmlXPathSelector(response) sites = hxs.select('//strong[@class="genmed"]') items = [] for site in sites[:5]: item = PanduItem() item['username'] = site.select('dl/dd/h2/a').select("string()").extract() item[