Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- images = "\n".join(['https:' + elm for elm in
- response.xpath('//div[@class="next-slick-list"]//img/@src').extract()])
- except:
- images = ""
- try:
- description = "\n".join(
- response.xpath('//div[@class="html-content pdp-product-highlights"]//text()').extract())
- except:
- description = ""
- try:
- return_warranty = "\n".format(response.xpath(
- '//div[@data-spm="return_warranty"]//div[@class="delivery-option-item__info"]//text()').extract())
- except:
- return_warranty = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement