videocamWeb Data Extraction Summit - September 30th, 2021.
Join some of the greatest minds in web scraping to educate, inspire, and innovate.
Register for free!
Start a new topic

Scraping Amazon Product Images

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.

1 Comment

What do you think about that selector?

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

 (I am still a rookie in scrapy)

Login to post a comment