Scraping Amazon Product Images

Posted almost 4 years ago by juanjtov

Post a topic
Un Answered
j
juanjtov

Start url: https://www.amazon.com/Fossil-Stainless-Silicone-Touchscreen-Smartwatch/dp/B07SRW3MCM


I want to scrape product images inside some Amazon products, I mean the ones on the left side when you open any product, there are at least 4-7 images  that change when you pass your mouse pointer over them. When I try to extract them in the regular way using xpath:

response.xpath('.//div[@class="imgTagWrapper"]/img/@src').getall()

 

I just get the url for the first image.


Thank you.

0 Votes


1 Comments

j

jeanfrancois_allot posted over 3 years ago

What do you think about that selector?

response.xpath('.//span[@class="a-button-text"]/img/@src').getall()

 (I am still a rookie in scrapy)

0 Votes

Login to post a comment