In this time of scarce delivery times for groceries from Konzum Klik, this script is not the script we need, but the script we deserve. Or something like that.
- Install virtualenvwrapper
- Install pyenv
- Register on Konzum Klik
- Register on Sendgrid - need to verify a sending domain or setup a single sender address
- Generate a Sendgrid API key
Konzum Klik login details:
KONZUM_KLIK_USERNAME
KONZUM_KLIK_PASSWORD
Sendgrid:
SENDGRID_API_KEY
NOTIFY_TO_ADDRESS
- to which email address to send a notification when the delivery time opens upNOTIFY_FROM_ADDRESS
- from which email address to send (if you verified your own domain, it can be anything@your-domain.com)
git clone
cd konzum_watchdog
pyenv local
mkvirtualenv konzum_watchdog
cp env.sh.example env.sh
vim env.sh # input your own data
pip install -r requirements.txt
source env.sh && python main.py