Python 3 Gmail notification Bot
- current uses are for email alerts apon avaliablity of amazon product sizes
run:
python3 setup.py
I recommend to set up a second Gmail account to send the alerts from, as you may have to 'allow less secure app access' within google account settings.
edit example-config.py
and rename it to config.py
so the scripts can read it.
Once configured you can test the email function works by running:
python3 test_email.py
Example for sending an alert once a product size becomes available on 'amazon.co.uk'. It willl check every 15 mins if the usb stick is availible in the 1tb size.
product_url = "https://www.amazon.co.uk/SanDisk-Ultra-Flash-Drive-Read/dp/B083ZS4HYD/ref=psdc_430554031_t1_B07NS1Y9K3?th=1"
from Notipyer import check_amazon
sizes = check_amazon.get_sizes(product_url)
output:
Available sizes are:
- 16 GB
- 32 GB
- 64 GB
- 128 GB
- 256 GB
- 512 GB
[an email alert will be sent once the '1tb' option becomes available]