SSDC-practical-checker

command module
v0.0.0-...-e5c8dde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 15 Imported by: 0

README

SSDC Driving Lesson Checker Build Status codecov

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.

Requirements

How to use

  1. Fill in your username and password in the .credentials.template.json file
  2. Rename it to .credentials.json
  3. Run the script with the following command
go run main.go
  1. Script will run at a fixed interval

Todos

  1. Send notifications/email if there is an available lesson this week
  2. Support input parameter for the fixed polling interval instead of hardcoding it
  3. Increase search range for booking (beyond the current week)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL