Scrape Amazon easily with this python library

In this story we are going to search text on amazon and fetch the results. We will use datakund library to obtain such results. Here are the steps to follow to obtain results:-

  1. Install datakund
pip install datakund

2. Import datakund

from datakund.datakund import *

3. Search a keyword on amazon

4. Get the search results by calling function search_results .

5. You can move to next page as well and fetch results

all_pages_results= {}
for i in range(0,12):
response=amazon.search_results()
search_results=response['body']
all_pages_results[i]=search_results
amazon.click_next()