The number of people in the gym varies with time of day, and with day of the week. To investigate the best time to go to the gym, I wrote code to:
I deployed the code for scraping to a Raspberry Pi, and let it run constantly for just over a month in late 2019.
This is the result:
So, roughly speaking, the gym gets quieter with each passing day from Monday. There are strong peaks of people going to the gym before work, at lunch time, and immediately after work.
The code is available at GitHub.