Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

A different S3 Endpoint URL is now possible when uploading images

Pedro Sousa04ccf79e3856
diff --git a/scrapy/pipelines/images.py b/scrapy/pipelines/images.py
index 95323c613..8338a6281 100644
--- a/scrapy/pipelines/images.py
+++ b/scrapy/pipelines/images.py
@@ -89,6 +89,7 @@ class ImagesPipeline(FilesPipeline):
s3store = cls.STORE_SCHEMES['s3']
s3store.AWS_ACCESS_KEY_ID = settings['AWS_ACCESS_KEY_ID']
s3store.AWS_SECRET_ACCESS_KEY = settings['AWS_SECRET_ACCESS_KEY']
+ s3store.AWS_ENDPOINT_URL = settings['AWS_ENDPOINT_URL']
s3store.POLICY = settings['IMAGES_STORE_S3_ACL']
gcs_store = cls.STORE_SCHEMES['gs']