|
|
|
@ -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')
|
|
|
|
|