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.
- python3
- pip3
- requests
- beautifulsoup4
- Clone this project
git clone https://github.com/adhirajpandey/amazon-scraperand cd into itcd amazon-scraper - Install Requirements
pip install -r requirements.txt - Run the Script
python product_details.pyorpython search_results.pyorpython links_csv.py
python product_details.py- Enter the link of the Amazon Product Page
- Check Product deatails in Terminal
python search_results.py- Enter the Search Term
- Enter the number of pages upto which you want to scrape links
- Enter the name of the output file
- Check
[filename].txtfor Product links in Working Directory
python links_csv.py- Enter path of the links txt file
- Enter the name of the links txt file
- Enter the output path where csv will be saved
- Enter the name of desired output csv
- Check
[filename].csvfor Product Details in path provided.





