⚙️ 起源
I enjoy playing badminton, that’s my biggest interest. I play with colleagues, friends very often. Initially, my friends helped me book the court, but sometime it became difficult to reserve, and we often couldn't get one (it seems to be related to hand speed). So I had an idea to write a program that could use an API to reserve the court.
At WiseWork,I used requests
to test APIs, and as I became a web developer, I started to understand the rules of web pages better, such as the login and verification process. After observing the rules of the web page, I began developing the program.
Tools & package I used:
- python requests
- jupyter notebook
- google vision
- google cloud function
- google cloud scheduler
🧩 First Prototype(Failed)

Implementation results and encountered problems:
- To save time, I directly called the booking API after logging in. However, I found that this not only failed to reserve a court but also caused my account blocked by the website.
- This program can’t accommodate if I switch to other location(Other location share the same pattern).
- It can only be manually triggered, so the program will be triggered at midnight.
- Google Vision's captcha recognition may have delays and accuracy issues.
- After a savage-like behavior of hitting apis, eventually failed without checking.
- The timing of the reservations were not continuous(or same time but different court).
🧩 Second Prototype
