Puppeteer Web Scraping - Scrape a product with multiple images

69 views Asked by At

I am trying to build a portfolio with various small projects - currently im working on web scraping.

I am using Puppeteer and am able to scrape basic test websites. However, my questions ends to more advanced uses such as the ability to scrape a product which has multiple images, a typical use case of today.

At the moment i am able to retrieve the 1 single image which is loaded on the page using the correct selector. However, if the product has for example 5 images, i would like to retrieve all 5 images but at the highest resolution and not as the thumbnails which are usually shown as a preview

All help is appreciated

1

There are 1 answers

4
adebayo On

A high-res image will be available on the product's description page. You might need to go to that page to retrieve the URL of the high-resolution image, depending on how the website/platform you are scraping is structured.