Skip to content

Stijn-Jacobs/MijnOVScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MijnOVScraper

Previously this data was easily accesible through the API used by the mobile app. But since the app got taken down, so did the API endpoint. I still wanted to fetch my traveling data, so I've thrown together this scraper that scrapes the data from the ov-chipkaart.nl site.

It generated a data.json file similar to the old format the api would return.

You only need to create a settings.py file, with the following:

MEDIUM_ID = "<id of the card you want to fetch for>"
LOGIN_USERNAME = "<your username on ov-chipkaart.nl>"
LOGIN_PASSWORD = "<your password on ov-chipkaart.nl>"

MEDIUM_ID can be retrieved by going to this page, and selecting your card. In the url it will display your 'mediumid'. You can also login manually in the browser opened by the selenium web driver, instead of setting it through the settings file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages