View Code? Open in Web Editor
NEW
Booking Badminton Slots (University of Southampton)
Python 0.80%
TeX 29.81%
HTML 69.39%
gym-booking-bot's Introduction
A Bot to Book Badminton Courts
Just download this Project to your computer.
To run the program:
For macOS
Go to the output
folder/directory (in Terminal)
Please run this command to book badminton courts: ./main <day> <time>
For example ./main 3 15
(if I want to book a court at 15:00 on the day after tomorrow) (Normal booking)
For example ./main 8 7
(if I want to book a court at 7:00 for today one week later) (Use this to rob a court.)
For windows OS
Go to the dist
folder/directory (in cmd)
Please run this command to book badminton courts: main.exe <day> <time>
For example main.exe 0 15
(if I want to book a court at 15:00 today) (Normal booking)
For example main.exe 8 7
(if I want to book a court at 7:00 for today one week later) (Use this to rob a court.)
Go to the booking page. (See the following gif)
To login from the gym website
added -y
after the command
e.g., main.exe 8 19 -y
(windows OS )
Please start the program after 05:00 and before 00:00.
The program will try to book a court at that time (any court) until 00:10 the next day.
Please reach out to me if there are any bugs. (There should be many. ๐น)
Create Executables (for my reference)
Create windows executable
pyinstaller --onefile main.py
Source
gym-booking-bot's People
Contributors
Stargazers
Watchers
gym-booking-bot's Issues
In court choosing webpage, the data-ea-id is:
button-ActivityID=HIFCASBADM ResourceID=0 Date=2021/11/1
not:
button-ActivityID=HIFCASBADM ResourceID=0 Date=2021/11/01
Solution:
change date or greap search?
Need to wait longer for the App approval.