[英]How to export AWS S3 URL to CSV for images I uploaded there via Scrapy?
I have successfully uploaded images to AWS S3 via Scrapy using the ImagesPipeline
. 我已使用ImagesPipeline
通过Scrapy将图像成功上传到AWS S3。 Now the problem is, the AWS S3 image URLs are not showing up when I export the scraped info to CSV. 现在的问题是,当我将抓取的信息导出到CSV时,没有显示AWS S3图像URL。
How can I make sure the AWS S3 image URLs to be exported to the CSV? 如何确保将AWS S3图像URL导出到CSV?
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
而不是images
,所以我必须将此设置放在settings.py
:
IMAGES_RESULT_FIELD = 'Images'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.