Tracks price of given product on amazon and sends e-mail notification if the price drops below a given threshold.
-
Go to the following link to set up an app password for your google account.
-
Set email address and password generated for third-party app as environment variables.
export EMAIL_USER=<Your email id> export EMAIL_PASSWORD=<Generated password>
You may have to set up 2FA if you have not already.
-
Clone the repository
git clone https://github.com/tintindas/amazon-price-tracker.git
-
Navigate into directory
cd amazon-price-tracker
-
Set up Python virtual environment
python3 -m venv .venv
.venv is what I usually name my virtual environment folder.
-
Activate environment
$ source .venv/bin/activate
-
Install dependencies
$ pip install -r requirements.txt
-
Edit email list
Edit the line below. Reset the array with your email addresses.
- Put the url(s) of your product(s) in the config array in the config.py.
- The
id
property of the object must be unique. - Each product must be its own object with a target price, unique id and url.
Change the cron schedule to run the workflow in check_price.yml at your intended interval.