Advertisement
jeffdh5

Untitled

Feb 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. try:
  2. images = "\n".join(['https:' + elm for elm in
  3. response.xpath('//div[@class="next-slick-list"]//img/@src').extract()])
  4. except:
  5. images = ""
  6. try:
  7. description = "\n".join(
  8. response.xpath('//div[@class="html-content pdp-product-highlights"]//text()').extract())
  9. except:
  10. description = ""
  11. try:
  12. return_warranty = "\n".format(response.xpath(
  13. '//div[@data-spm="return_warranty"]//div[@class="delivery-option-item__info"]//text()').extract())
  14. except:
  15. return_warranty = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement