Skip to content

adhirajpandey/amazon-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amazon-scraper

Description

This Project allows you to scrape search results and product information from amazon website.

Below are the scrapers used in this project :

  • product_details.py - Product link as input and Product Title, Price, Rating, Number of Reviews as Output.
  • search_results.py - Search Term as input and txt file of links of listed Products as Output.
  • links_csv.py - Text file of links as input and csv file with details as Output.

Requirements

  • python3
  • pip3
  • requests
  • beautifulsoup4

Usage

  1. Clone this project git clone https://github.com/adhirajpandey/amazon-scraper and cd into it cd amazon-scraper
  2. Install Requirements pip install -r requirements.txt
  3. Run the Script python product_details.py or python search_results.py or python links_csv.py

Scrape Product Details from Amazon Link

  1. python product_details.py
  2. Enter the link of the Amazon Product Page
  3. Check Product deatails in Terminal

Scrape Product Links from Search Page

  1. python search_results.py
  2. Enter the Search Term
  3. Enter the number of pages upto which you want to scrape links
  4. Enter the name of the output file
  5. Check [filename].txt for Product links in Working Directory

Scrape Details of Multiple Products

  1. python links_csv.py
  2. Enter path of the links txt file
  3. Enter the name of the links txt file
  4. Enter the output path where csv will be saved
  5. Enter the name of desired output csv
  6. Check [filename].csv for Product Details in path provided.

Examples

  1. product_details.py

    product_details

  2. search_results.py

    search_results1

    search_results2

  3. links_csv.py

    links_csv1

    links_csv2

    links_csv3

About

Project to Scrape Search Results and Product Details from Amazon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages