Follow these steps to set up and run the tool locally on your machine.
-
Make sure you have Python 3.6 or higher installed on your machine. You can download Python from python.org.
-
Open your terminal and run:
git clone https://github.com/Souvik-Cyclic/Price-Comparator.git
-
Change into the project directory:
cd Price-Comparator
-
Install the required Python packages using
pip
. Run:pip install -r requirements.txt
-
python price_comparator.py
-
- When prompted, enter the name of the product you want to search for.
- The script will fetch and display product information from Amazon and Flipkart.
-
Enter the product name: Laptop Searching for product on Amazon and Flipkart... Amazon Product: Title: XYZ Laptop Price: ₹50,000 Amazon Link: https://www.amazon.in/dp/B08XYZ Flipkart Product: Title: XYZ Laptop Price: ₹49,999 Flipkart Link: https://www.flipkart.com/xyz-laptop/p/itmb07xyz
-
- If you encounter errors: Make sure all dependencies are correctly installed and check for any typos in the product name.
- No results: The tool may not find results if the product is not available or if the HTML structure of the websites has changed.