This Python program will scan available driving exam times from Maanteeamet e-service website and sends an email notification about new openings.
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:
- Facebook driving exam trading community
- Sketchy 15β¬/month subscription service to receive notifications about free 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.
Program is written in python and uses Selenium with Chrome WebDriver.
- Python
- Google Chrome
- Compatible version of Chromedriver needs to be placed in the main root folder as "chromedriver.exe"
- PyCharm (Recommended for importing dependencies)
- Rename "userdata-default.yaml" to "userdata.yaml"
- 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".
- Edit "userdata.yaml" to fit your needs