Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoineaugusti/trainline-gdpr
Analyze your personal data coming from Trainline
https://github.com/antoineaugusti/trainline-gdpr
data-visualisation data-visualization gdpr rgpd trainline trains
Last synced: 25 days ago
JSON representation
Analyze your personal data coming from Trainline
- Host: GitHub
- URL: https://github.com/antoineaugusti/trainline-gdpr
- Owner: AntoineAugusti
- License: mit
- Created: 2018-10-06T15:03:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T13:05:55.000Z (about 4 years ago)
- Last Synced: 2024-06-13T09:42:58.937Z (5 months ago)
- Topics: data-visualisation, data-visualization, gdpr, rgpd, trainline, trains
- Language: Python
- Homepage: https://blog.antoine-augusti.fr/2018/10/visualizing-my-train-journeys-thanks-to-gdpr-and-trainline/
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Trainline GDPR
## What's this?
**Short:** generate a CSV file of trips you've booked through Trainline from your data you have requested thanks to the GDPR.**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.
The 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).
## Installation
```sh
git clone [email protected]:AntoineAugusti/trainline-gdpr.git
cd trainline-gdpr
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```## Usage
```
$ python main.py -h
usage: main.py [-h] filepathpositional arguments:
filepath The full path to the Trainline JSON fileoptional arguments:
-h, --help show this help message and exit
```Therefore, you can call the script like this: `python main.py /tmp/trainline.json`
## Generated CSV
See the file [data_sample.csv](data_sample.csv) to look at a sample file!