{"id":16643961,"url":"https://github.com/antoineaugusti/trainline-gdpr","last_synced_at":"2025-10-30T12:30:30.844Z","repository":{"id":147566344,"uuid":"151851102","full_name":"AntoineAugusti/trainline-gdpr","owner":"AntoineAugusti","description":"Analyze your personal data coming from Trainline","archived":false,"fork":false,"pushed_at":"2020-08-21T13:05:55.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T08:31:49.043Z","etag":null,"topics":["data-visualisation","data-visualization","gdpr","rgpd","trainline","trains"],"latest_commit_sha":null,"homepage":"https://blog.antoine-augusti.fr/2018/10/visualizing-my-train-journeys-thanks-to-gdpr-and-trainline/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoineAugusti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-06T15:03:16.000Z","updated_at":"2020-10-22T15:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"a29fd9f1-9d8a-40db-aa41-cfad64546145","html_url":"https://github.com/AntoineAugusti/trainline-gdpr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineAugusti%2Ftrainline-gdpr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineAugusti%2Ftrainline-gdpr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineAugusti%2Ftrainline-gdpr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineAugusti%2Ftrainline-gdpr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoineAugusti","download_url":"https://codeload.github.com/AntoineAugusti/trainline-gdpr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238961286,"owners_count":19559461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-visualisation","data-visualization","gdpr","rgpd","trainline","trains"],"created_at":"2024-10-12T08:10:03.871Z","updated_at":"2025-10-30T12:30:25.558Z","avatar_url":"https://github.com/AntoineAugusti.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trainline GDPR\n\n## What's this?\n**Short:** generate a CSV file of trips you've booked through Trainline from your data you have requested thanks to the GDPR.\n\n**Long:** I use [Trainline Europe](https://www.trainline.eu) to book my train tickets since it was called Capitaine Train. Thanks to the GDPR law and especially the portability section, you can request your personal data. I wrote a [blog post](https://blog.antoine-augusti.fr/2018/10/visualizing-my-train-journeys-thanks-to-gdpr-and-trainline/) about this.\n\nThe Trainline Europe team will gladly send you a JSON file by email. The goal of this repository is to get a single CSV file to analyse your personal trips (trips that you've actually done - not booked, cancelled or those who have expired).\n\n## Installation\n```sh\ngit clone git@github.com:AntoineAugusti/trainline-gdpr.git\ncd trainline-gdpr\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n```\n$ python main.py -h\nusage: main.py [-h] filepath\n\npositional arguments:\n  filepath    The full path to the Trainline JSON file\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\nTherefore, you can call the script like this: `python main.py /tmp/trainline.json`\n\n## Generated CSV\nSee the file [data_sample.csv](data_sample.csv) to look at a sample file!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoineaugusti%2Ftrainline-gdpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoineaugusti%2Ftrainline-gdpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoineaugusti%2Ftrainline-gdpr/lists"}