This is a basic whatsapp application that uses whatsapp library to store user's location from time to time and log events in a database.
pip install -r requirements.txt
python hook.py
It only runs if you have a ssl certificate as whatsapp only serves webhook events on https.
Modify the creds.json file to your liking. follow this video to get the credentials.