阅读背景:

如何将AWS S3 URL导出为CSV,以便通过Scrapy上传到那里的图像?

来源:互联网 

I have successfully uploaded images to AWS S3 via Scrapy using the ImagesPipeline. Now the problem is, the AWS S3 image URLs are not showing up when I export the scraped info to CSV.

我已使用ImagesPipeline通过Scrapy成功将图像上传到AWS S3。现在的问题是,当我将抓取的信息导出为CSV时,AWS S3图像URL没有显示出来。

How can I make sure the AWS S3 image URLs to be exported to the CSV?

如何确保将AWS S3图像URL导出为CSV?

1 个解决方案

#1


1  

I found out the solution myself! It turns out I forget to add a simple setting. I don't want to use the default image field name. I want to use Images instead of images, so I have to put this setting in settings.py:

我自己找到了解决方案!事实证明我忘了添加一个简单的设置。我不想使用默认的图像字段名称。我想使用Images而不是图像,所以我必须将此设置放在settings.py中:

IMAGES_RESULT_FIELD = 'Images'

分享到: