summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/shopify.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/shopify.py')
-rw-r--r--gallery_dl/extractor/shopify.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/gallery_dl/extractor/shopify.py b/gallery_dl/extractor/shopify.py
index 278ad14..f6e8bc0 100644
--- a/gallery_dl/extractor/shopify.py
+++ b/gallery_dl/extractor/shopify.py
@@ -119,15 +119,14 @@ class ShopifyCollectionExtractor(ShopifyExtractor):
def products(self):
url = self.item_url + "/products.json"
+ params = {"page": 1}
- while url:
- response = self.request(url)
- yield from response.json()["products"]
-
- url = response.links.get("next")
- if not url:
+ while True:
+ data = self.request(url, params=params).json()["products"]
+ if not data:
return
- url = url["url"]
+ yield from data
+ params["page"] += 1
class ShopifyProductExtractor(ShopifyExtractor):