How to create Amazon Product Result Page Scraper Bot

In this Blog Post we will make a bot with the help of Datakund Studio to scrape the product information from Amazon Search Result Product Page. This bot will save the scraped data in Google Sheet.

  1. First we’ll enter name of the bot “amazon-scraper”. After that click on “+ New Api” button to create a new bot.

Amazon_product_scraper
  1. Now click “record” to train the bot and then click keyboard button to add variables.

Amazon_product_scraper
  1. Now add the input and output variables and click “save” button. Now click button to go back to the training.

Amazon_product_scraper
  1. Now right click anywhere on the browser windows, click Datakund =>more=>input=>variables=>amazon_url=>open Link. This will open the given input link in the browser.

Amazon_product_scraper
  1. Page should redirects to a page which is shown below, now stop the training for aprnce(click button to stop training), and open amazon search results page to train the bot.

Amazon_product_scraper
  1. After opening the Amazon search result page, we will strat training the bot again. Click DK extension, and click record and then click the last recorded event to continue training the bot from that event.

Amazon_product_scraper

7.Now lets train the bot to scrape the date repeatedly, for that we need to add repeat action, for that press alt+p to add repeat event.

Amazon_product_scraper
  1. After adding the repeat event, right click on the title of a product click Datakund=>scrape=>text=>title, to scrape the title.

Amazon_product_scraper
  1. Lets Scrape similarly for Price and Link.

Amazon_product_scraper

10.Now stop the training and click “Run” in the menu as shown below.

Amazon_product_scraper
  1. Now enter the amazon link in the box below and click the arrow beside run, and click “Run Google Sheet”, wait for the bot to load and click “Run Google Sheet” again.

Amazon_product_scraper
  1. Now enter the amazon link in the box below and click the arrow beside run, and click “Run Google Sheet”, wait for the bot to load and click “Run Google Sheet” again.

Amazon_product_scraper