Badminton Availability Checker is a Selenium Web Scrapper bot built in Python for checking available badminton courts in Singapore.
In particular this bot will check for all courts in:
- One PA
- Active SG
- One time set-up for your username and password to access active sg (bogus details can be used if you don't intend to check Active SG)
- Checks all available badminton courts for a particular day
- Saves the result into a
csv
file for easy reference
I am assuming that you have no technical background and are starting from scratch. I am also assuming you are using Windows (sorry Mac users (||^_^))
STEP 1: Download latest version of python 3
This should be the first link
When installing:
- check the box that says Add Python 3.x to PATH
STEP 2: Download the piloting driver for your Chrome browser here Make sure it's the right version
- In chrome, click the three dot in the upper right hand corner -> help -> about google chrome, should be 80....)
STEP 3: Almost done!
- Download the files in this GitHub (Using the green button somewhere along the right hand side)
- Extract them into a folder
- Open your command prompt (windows key, type "cmd", should be the first application)
- Navigate to where all the files are installed in
cd Downloads\EXTRACTED_FILENAME_HERE
(if you placed the extracted folder in your downloads folder)
- type
pip3 install -r requirements.txt
wait.
Once everything's done, you're good to go!
Navigate to the folder that contain the file on your command prompt
cd Downloads\EXTRACTED_FILENAME_HERE
(if you placed the extracted folder in your downloads folder)
run the command:
python main.py
- Check a particular court for all available booking slots
- Check multiple courts for all available booking slots
- Save a list of favourite courts to check
Pull requests are welcome!
Feel free to open an issue if you found a bug or have any questions!