An open API service indexing awesome lists of open source software.

https://github.com/tmarice/konzum_watchdog

Konzum Klik delivery times watchdog
https://github.com/tmarice/konzum_watchdog

crawling konzum-klik python watchdog

Last synced: 6 months ago
JSON representation

Konzum Klik delivery times watchdog

Awesome Lists containing this project

README

          

# Konzum Watchdog

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.

## Prerequisites
1. Install [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/)
2. Install [pyenv](https://github.com/pyenv/pyenv#installation)
3. Register on [Konzum Klik](https://www.konzum.hr/web/sign_up)
4. Register on [Sendgrid](https://sendgrid.com/pricing/) - need to verify a sending domain or setup a single sender address
5. Generate a [Sendgrid API key](https://app.sendgrid.com/settings/api_keys)

## Config
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 up
* `NOTIFY_FROM_ADDRESS` - from which email address to send (if you verified your own domain, it can be anything@your-domain.com)

## Setup
1. `git clone`
2. `cd konzum_watchdog`
3. `pyenv local`
4. `mkvirtualenv konzum_watchdog`
5. `cp env.sh.example env.sh`
6. `vim env.sh # input your own data`
7. `pip install -r requirements.txt`

## Run
`source env.sh && python main.py`