Scrape product details from Wayfair.com based on parameters like brand, price, material, rating, and more using web scraper chrome extension.
This tutorial will show you how to extract product details from H&M using Web Scraper Chrome Extension. It helps to gather basic product details, pricing, reviews and more.
What data are we extracting from H&M?
- Product Name
- Price
- Number of Reviews
- Product Description
- Product Details
The annotated screenshot below shows the data fields we will be scraping:
Prerequisites
- Google Chrome Browser– You will need to download the Chrome browser. The extension requires Chrome 49+.
- Web Scraper Chrome Extension –The Web Scraper extension can be downloaded from the Chrome Web Store. After downloading the extension you will see a spider icon in your browser toolbar.
Obtaining the URL
H&M allows you to search for products that you can filter based on parameters like product type, size, color, and more. This scraper allows you to scrape data from H&M based on your requirements. You can select the filters for the data you need and copy the corresponding URL. In the Web Scraper toolbar, click on the Sitemap button, select the option “Edit metadata’ and paste the new URL (based on your filter) as the Start URL.
For detailed steps on how to scrape H&M, you can watch the video below or continue reading –
Import H&M Scraper
After you have installed the extension right-click anywhere on a page, go to ‘Inspect’ and the Developer Tools console will pop up. Click on the tab ‘Web Scraper’ and go on to the ‘Create new sitemap’ button and click on the ‘Import sitemap’ option. Now paste the JSON below into the Sitemap JSON box.
You can get the JSON from the GIST link below:
https://gist.github.com/scrapehero-code/63bd64202090ecfa226e7881a1e748d6
Run the Scraper
To start scraping, go to the Sitemap and click ‘Scrape’ from the drop-down. A new instance of Chrome will launch, enabling the extension to scroll and grab the data. Once the scrape is complete, the browser will close automatically and send a notification.
Download the Data
To download the scraped data as a CSV file that you can open in Microsoft Excel or Google Sheets, go to the Sitemap drop-down > Export as CSV > Download Now.
We can help with your data or automation needs
Turn the Internet into meaningful, structured and usable data
Disclaimer: Any code provided in our tutorials is for illustration and learning purposes only. We are not responsible for how it is used and assume no liability for any detrimental usage of the source code. The mere presence of this code on our site does not imply that we encourage scraping or scrape the websites referenced in the code and accompanying tutorial. The tutorials only help illustrate the technique of programming web scrapers for popular internet websites. We are not obligated to provide any support for the code, however, if you add your questions in the comments section, we may periodically address them.
Continue Reading ..
- Scrape product details from Wayfair using Google Chrome
- Scrape product data from Overstock using Google Chrome
Scrape product details from Overstock.com based on parameters like price, color, style, brands, and customer ratings using web scraper chrome extension
- Scrape popular apps from Apple App Store (iTunes Store) using Google Chrome
A quick and easy scraper you can import to your Chrome browser to extract all popular app data from ITunes.
Responses
Hey there,
I found this article really helpful.
However, I’m really interested to know if it’s also possible to get the product quantity/inventory. So, say for example, if a specific size runs out of stock, would it be possible for the scraper to indicate that as well?
Thanks in advance!
Comments are closed.