How to Scrape Amazon BestSeller Listings using Web Scraper Chrome Extension

The Web Scraper Extension is a great web scraping tool for extracting data from dynamic web pages. Using this, you can create a sitemap that shows you how the website should be traversed and what data should be extracted. With these sitemaps, you can easily navigate the site any way you want and the data can be later exported as a CSV. In this tutorial, we will show you how to extract product details using the Web Scraper Chrome extension. We are using Amazon BestSeller List as an example here.

Before we begin, you can install the Web Scraper extension from the Chrome Web Store to get started.

Import the Amazon BestSeller Scraper

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 (given in the gist link below) in the Sitemap JSON box.

Here is a step by step video to extract the product details:

We will give detailed instructions to create the scraper:

1. Creating a Sitemap

After installation right-click anywhere on a page to go to ‘inspect’ and open the developer tools console pop up. Click on the tab Web Scraper and go on to the ‘Create new sitemap’ button.

We will set the starting URL as pet supplies category on Amazon bestsellers:


Understanding the pagination structure of the website enables you to scrape multiple pages. You can easily do that by clicking the ‘Next’ button a few times from the homepage.

If you don't like or want to code, ScrapeHero Cloud is just right for you!

Skip the hassle of installing software, programming and maintaining the code. Download this data using ScrapeHero cloud within seconds.

Get Started for Free
Deploy to ScrapeHero Cloud

2. Navigate from the root to listing pages

The Web Scraper tool is now open at the _root with an empty list of child selectors. You can create a selector that selects each product listing on the first page by clicking on ‘Add new selector’Let’s give it the id name product, with its type as Element.

The ‘Select button’ gives us a tool for visually selecting elements on the page to construct a CSS selector. Click on ‘Select’ and hover your mouse over the listing page. We are selecting the element that encloses all the product details. ‘Element Preview’ highlights the elements on the page. When you click on that you’ll see all the elements on the page highlighted in red.

Since we need to get all the product listings on the page, we have to check the ‘Multiple’ box. The GIF below shows how the ‘product’ selector is created.


You can see the sample of your data by clicking on ‘Data Preview’.


3. Scrape Elements

Here are the following data fields we’ll be extracting within the product element:

  1. Rank
  2. Product Name
  3. Number of Customer Reviews
  4. Rating (out of 5)
  5. Price
  6. Image

Let’s go back to the bestseller page and take the Web Scraper tab. Click on the ‘product’ selector we have created. Now we can create selectors for each data field. These selectors will be the child selectors to the parent selector ‘product’.

We’ll create selectors just like we did with the selector ‘product’. The GIF below shows you how to add a child selector to a sitemap:


So far we have created a scraper for a single page. Since the Amazon bestseller list has pagination, we have to create another selector to go to the ‘Next’ page. Let’s create a selector for the Next button within the root.


Note here that the parent selectors for the selector next is ‘root’ and ‘next’. This allows the scraper to keep scraping product listings as long as there is a next button.

4. Run the Scraper

Once you have made sure everything in the selector graph looks good you can start scraping.

Go to the Sitemap and click on ‘Scrape’ from the drop down. A new instance of Chrome will launch, enabling the browser to scroll and automatically grab the data. If you want to stop the scraping process in between, just close this window and you will have the data that was extracted till then.


Once the scraper run has finished you’ll get a notification. Go to the sitemap tab to browse the extracted data or export it to a CSV file.


We can help with your data or automation needs

Turn the Internet into meaningful, structured and usable data

Please DO NOT contact us for any help with our Tutorials and Code using this form or by calling us, instead please add a comment to the bottom of the tutorial page for help

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.


Posted in:   eCommerce Data Gathering Tutorials


Kaori Watanabe February 17, 2019

Thank you for this tutorial!
However, the next button didn’t work for me. seeing the graph in the Link Selector page of the Documentation here, I think next has product and next as parents, not _root ?

Anyway, in my example (although it is a little bit different from this one), I did like that and it worked 🙂


    lacasadeloscoches March 10, 2019

    Hi Kaori, I am learning to Scrape too. It worked for me as in the example. I am looking for scraping tools to get data from or that kind of things, so if you want to talk about it, send me an email to


Frank Gunseor September 23, 2019

I am having trouble following the videos because they move so fast. I can create a product selector, but I can not get the selectors to show as a child. Can anyone help me? Please?


ScrapeHero September 25, 2019

Hi Frank,
You can pause the videos and look at the screenshots in detail to follow along.


Ethan September 29, 2019

Hi Frank,

Is there any way to automate this? For example, pull data on the 1st of every month.


CraigUK December 28, 2019

I have imported the Amazon BestSeller Scraper and changed the homepage in the sitemap, and it works brilliantly. How can I add a product description to the scraped data?


Comments or Questions?

Turn the Internet into meaningful, structured and usable data