Singapore has a ridiculous amount of people who wants to learn driving each day. It is not possible for a single school to accomodate everyone to book their driving lessons. Driving lessons are difficult to book if you want a lesson in the near future (e.g. this week). On average, a person waits at least a month before starting their practical driving lessons.
I can't spend 20 seconds to type my username and password into a website that expires my ASP.NET session almost every 30 minutes. So i spent a few hours of my life writing something that can help me to do some web crawling so that I'm able to get notified if there is a driving lesson available for booking.
- Golang (1.14)
- Fill in your username and password in the
.credentials.template.json
file - Rename it to
.credentials.json
- Run the script with the following command
go run main.go
- Script will run at a fixed interval
- Send notifications/email if there is an available lesson this week
- Support input parameter for the fixed polling interval instead of hardcoding it
- Increase search range for booking (beyond the current week)