auto_book_covid_test_centre_hk
Please credit me if you are using the source code
FOR PYTHON LEARNING ONLY
The current version is to book a specific centre at the earliest possible timeslot today by default. The variable for bookings in tomorrow is also provided, please change the source code before running the programme. A SMS of booking confirmation sent by the HKG will be received if booking successfully.
The language preference of the receiving SMS is Chinese by default, it can be changed to English in the source code. Remember to change the surname and given name values if the language preference is changed, otherwise you may not get your full name correctly.
Requirement
- install pyhton 3.7 or above
- install pip
- install pytest (optional)
- install playwright
- modify the '# input value setting' section of the source code to your preferred values (e.g. your name, hkid, tel. mobile etc) before testing the programme
- Requires MacOS 10.14 (Mojave) or above on MAC platform
Test
type 'pytest main.py' (only if pytest is installed) or 'python main.py' in the terminal or cmd to run