From 1362bc643f3e2339f0e8dbbab0c0890d56efabed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 2 Jan 2019 15:44:37 +0100 Subject: [PATCH] Ignore data-visible-to-buyer on Teespring --- teespring-api/teespring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teespring-api/teespring.py b/teespring-api/teespring.py index ed9b9bc..c4c78d2 100644 --- a/teespring-api/teespring.py +++ b/teespring-api/teespring.py @@ -16,7 +16,7 @@ class Teespring(object): def _parse_variants(self, pid, html): result = [] d = pq(html) - for div in d('div.image_stack__container[data-visible-to-buyer="true"][data-product-id="{0}"]'.format(pid)).items(): + for div in d('div.image_stack__container[data-product-id="{0}"]'.format(pid)).items(): color_id = div.attr('data-color-id') front_url = div.find('div[data-side="front"]').find('img').eq(0).attr('data-original') back_url = div.find('div[data-side="back"]').find('img').eq(0).attr('data-original')