Skip to content

Latest commit

ย 

History

History
36 lines (28 loc) ยท 2.06 KB

File metadata and controls

36 lines (28 loc) ยท 2.06 KB

Maanteeamet Time Scanner

This Python program will scan available driving exam times from Maanteeamet e-service website and sends an email notification about new openings.

About

This program was initially made in Dec 2019, when Maanteeamet e-service only allowed to reserve times in the current month +2 months ahead. This meant that all times were constantly taken but on every new month new times were unlocked. Reserved times could easily be changed within 3 workdays without any extra charge. So people with a old time, they did not want, would migrate to the new times and create opening for their previous time. This created shady practices for getting better times:

This program was created out of necessity to not manually refresh a page or rely on a untrustworthy 3rd party. Using it I got a time in just 5 hours. Since then the Maanteeamet system has changed - times are now listed publicly and it is possible to reserve later times. Since I already have a driving license I do not have access to the e-service and cannot confirm how well parts of the program still function. To compensate I updated the program to work with the public data. If you do have access to the e-service feel free to improve this program.

Requirements:

Program is written in python and uses Selenium with Chrome WebDriver.

Installations:

  1. Python
  2. Google Chrome
  3. Compatible version of Chromedriver needs to be placed in the main root folder as "chromedriver.exe"
  4. PyCharm (Recommended for importing dependencies)

Config:

  1. Rename "userdata-default.yaml" to "userdata.yaml"
  2. Sending emails requires a Google account with "Less secure apps" enabled. Go to https://myaccount.google.com/security. This account is only used for sending emails. Account info goes into "userdata.yaml".
  3. Edit "userdata.yaml" to fit your needs
โšก