This project contains Python scripts for scraping product information from three popular e-commerce websites: Amazon, Flipkart, and Snapdeal. The scripts retrieve product names and prices, and then compare them to determine the lowest price among the three platforms.
- Python 3.x
requests
librarybeautifulsoup4
librarytabulate
library (for table formatting)
- Clone this repository:
git clone <repository-url> cd <repository-directory>
-
Install the required libraries:
pip install requests beautifulsoup4 tabulate
This script scrapes product names and prices from a specified Amazon product URL. It utilizes BeautifulSoup to parse the HTML content and retrieves relevant product details.
This script retrieves product names and prices from a specified Flipkart product URL. It also uses BeautifulSoup for HTML parsing and displays the product information.
This script is designed to scrape product names and prices from a specified Snapdeal product URL, using BeautifulSoup for HTML content extraction.
This script combines the scraping functionality for Amazon, Flipkart, and Snapdeal into one cohesive script. It prompts the user to input product URLs for each site, retrieves the product names and prices, and then compares the prices to determine the lowest among the three platforms. The results are displayed in a formatted table using the tabulate library.
To run any of the individual scripts, execute them in your terminal or command prompt:
python DatascrapingofAmazon.py
python DatascrapingofFlipcart.py
python DatascrapingofSnapdeal.py
python endproduct.py
-You will be prompted to enter the product URLs for Amazon, Flipkart, and Snapdeal. The script will then output the product names and prices, along with the lowest price among the three.