twenty-four: gym service
The gym service scrapes the gym website for class reservations. No API, just Selenium clicking buttons in a headless Chrome instance.
It’s ugly, fragile, and works perfectly.
The Problem
My gym has a website where you can reserve classes up to 22 days in advance. Popular classes fill up within minutes of the window opening.
Manual process:
- Check website daily for new classes
- Reserve the ones you want before they fill
- Check back to see if you got off the waitlist
- Hope you didn’t miss anything
This is tedious and error-prone. I wanted automation, but the gym doesn’t have an API.