This repository contains a Python script that tracks the price of an IKEA product and sends an email notification when the price drops. The script runs every 2 hour using GitHub Actions and records the price changes in a JSON file.
- Tracks the price of an IKEA product.
- Sends an email notification when the price drops.
- Records price changes in a JSON file.
- Runs every 2 hour using GitHub Actions.
- Python 3.10 or later
- A Gmail account with an app-specific password for sending email notifications
-
Clone the repository:
git clone https://github.com/hsayed21/IKEA-Price-Tracking.git cd IKEA-Price-Tracking -
Install the required packages:
pip install -r requirements.txt
-
Set up your Gmail account to allow sending emails using an app-specific password. Follow these instructions to generate an app-specific password.
-
Add your email credentials and recipient email to GitHub Secrets:
FROM_ADDRESS: Your Gmail address.FROM_PASSWORD: Your app-specific password from Google.TO_ADDRESS: The email address where you want to receive the notifications.
-
To run the script manually, execute:
python ikea_price.py
-
The script will check the price of the specified IKEA product and send an email notification if the price has dropped. It will also update the
ikea_price_changes.jsonfile with the current price and timestamp.
The script is set to run every 2 hour using GitHub Actions. The workflow is defined in .github/workflows/price_check.yml.