To keep the wife happy, I created this script to automatically book in pilates classes at her gym. Apparently it gets super competitive booking in classes which get released at 5am 2 days in advance (the popular classes usually book out within minutes).
I trigger this script at the required time via crontab.
- Create
settings.py
and add required details (usesettings.py.example
as a guide) - Create venv eg.
python3 -m venv .venv
- Activate venv and install requirements:
source .venv/bin/activate pip install requirements.txt
- (Optional) Schedule wrapper shell script
pilates_booker.sh
via crontab eg.# every 5 minutes 5am-6am */5 5 * * * /path/to/pilates_booker.sh