This Python script monitors the price of a product from Flipkart(an e-commerce website) and notifies the user when the price drops below a specified minimum.
-
Clone the repository:
git clone https://github.com/SUDEEP-M-SHETTY/price-drop-alert.git cd price-drop-alert
-
Install dependencies: Ensure you have Python 3.x installed on your system. Install required Python packages using pip:
pip install -r requirements.txt
This will install the necessary libraries:
requests
for making HTTP requestsbeautifulsoup4
for parsing HTML contentplyer
for sending system notifications
-
Run the script:
python price_check.py
-
Follow the prompts:
- Enter the complete URL of the product you want to monitor.
- Enter the minimum price threshold. You will receive a notification when the price drops below this threshold.
-
Notifications:
- Linux: Uses
notify-send
command for notifications. Ensurenotify-send
is installed (sudo apt install libnotify-bin
on Debian/Ubuntu). - macOS: Uses AppleScript for displaying notifications.
- Windows: Uses
plyer.notification
for displaying notifications.
- Linux: Uses
Contributions are welcome! Here's how you can contribute to this project:
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/SUDEEP-M-SHETTY/price-drop-alert.git cd price-drop-alert
- Create a new branch for your feature or bug fix:
git checkout -b feature/new-feature
- Make changes and test your changes thoroughly.
- Commit your changes:
git commit -am 'Add new feature'
- Push to your branch:
git push origin feature/new-feature
- Submit a pull request on GitHub.
- This script periodically checks the price of the product and notifies you if the price drops below your specified threshold.
- Ensure your system has appropriate permissions to display notifications (especially for macOS and Linux).
- Customize or extend the script as needed for additional functionality or specific use cases.
By following these steps, you can effectively use and contribute to this price drop alert system, enhancing its capabilities and usability over time.