- If you do not have Python installed, download and install Python
- Clone ACBot locally.
- In terminal, navigate to ACBot directory.
- Install dependencies:
pip install -r requirements.txt
- Install ChromeDriver (make sure you also have chrome installed)
For macos, runbrew cask install chromedriver
If you have issues lauching ChromeDriver refer here
For Windows, refer to here - Configure Username and Password
- Rename the '.env.sample' file as '.env'
- Open the file and insert your LaurierAthletics username and passwords as
USERNAME='your_username' PASSWORD='your_password'
To schedule fitness you need to configure date/time constants and run the fitness.py file more than 1 minute before you want to schedule a fitness slot (usually when the spot or a set of spots open). The program will login to LaurierAthletics.com 1 minute before the time you want it to schedule your fitness slot. Then at the time you specify it should schedule your slot, it will refresh, find the slot, reserve it, and sign the waivers. To configure and run ACBot to schedule fitness,
-
Open the 'constants.py' file and update the date constants
-
Update the fitness time. This is the date and time that you want to be at the gym.
# Change this to be the date/time you want to work out FITNESS_DATE_TIME = dt.datetime(year = 2020, month= 12, day = 1, hour = 9)
-
Update the schedule time. This is the time that a booking you want to pick will come out.
# Change this to be the date/time you want AC Bot to book at SCHEDULE_DATE_TIME = dt.datetime(year = 2020, month = 11, day = 27, hour = 12)
-
Update the any time parameter. If you don't care what time you're in the gym, and want to maximize the likelihood you reserve a spot, you set it as TRUE.
# Make this True if you don't care what time slot you get on the date ANY_TIME = True
-
Open a terminal window and navigate to the project directory
-
Enter the command
python fitness.py