Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # json being parsed with:
- chaordic = json.loads(response.xpath('//script[contains(.,"window.chaordic_meta")]/text()').extract()[0].strip().split('=', 1)[1].replace("'",'"').replace('new Date()','0'))
- # then tried those forms to get the image url.
- # they all return [u'http://images.marisa.com.br/323220pd.jpg'] instead of u'http://images.marisa.com.br/323220pd.jpg'
- item['image'] = chaordic.images['1390X1431']
- item['image'] = chaordic.images['1390X1431'].pop(0)
- item['image'] = getattr(chaordic.images, '1390X1431')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement