The script tracks the price of an item on Amazon site. If the price is lower than defined as the argument, you will receive a mail.
To send the email alert you need to do the 2-step verification of your Google account:
- Go to https://www.google.com/landing/2step/
- Enable the 2-step verification
- Now you can set a password for the app. Go to Google Account and search "google app password"

- Click "Generate"
- Copy the password from a pop-up window and use it in the argument --password
To run the script you need to type in console:
python Track_price_Amazon.py --url "URL of Amazon product" --sender "sender's Gmail address" --password "sender's password" --receiver "receiver's email" --userAgent "your user agent" --price 9999-
--url - addres URL of Amazon product
Exmaple:
--ulr "https://www.amazon.de/-/pl/dp/B07XRR92LP/ref=zg_bs_3468301_23?_encoding=UTF8&psc=1&refRID=MBW4BYQD03MMZXZA2WD4" -
--sender - sender's gmail address - 2-step verification of Google account is needed
Example:
-- sender "[email protected]" -
--password sender's password for the application. Look at points 3-5 What you need to do before running the script?
Example:
-- password "passworddddddddd" -
receiver - receiver's email address - this is the email on which you will receive alerts
Example:
-- receiver "[email protected] -
--userAgent - your user agent - to get this type in Google browser "my user agent"
Example:
-- userAgent "Mozilla/x.x (X11; Linux x86_xx) AppleWebKit/xxx.xx (KHTML, like Gecko) Chrome/xx.x.xxxx.xx Safari/xxx.xx" -
--price - the price which is affordable for you - if the actual price on Amazon is lower, you will receive the mail.
Example:
-- price 1010