Simple python program to track prices on Amazon and Flipkart.
Fork the repository.
Commit changes in notify.py and main.py
- notify.py
- Line 7
email["to] = "<your gmail account here>"
- Line 15
smtp.login("xyz@gmail.com", "password") # another gmail account to send mails
- main.py
- Pass urls in line 5
- Prices in
exp_prices
urls = [
"https://www.amazon.in/product1/",
"https://www.flipkart.in/product2/"
] # url as strings
marked_prices = [1000, 500] # as integer or float type
Here, it'll notify you when price for product1 gets below 1000 and same for product2 when it gets below 500.
Note : It will check for prices once every 6 hours by default, you can change it on line 23 in main.py.
Turn on Less Secure Apps from your another gmail account and run main.py.
Check the mail entered on line 7 in notify.py for e-mails.