Export GPS tracks and tour data from komoot.de
The login process has changed again and I could not get it working on the first couple of tries (see open issue). So at present the script is not functional. Since I mainly use Strava now for data keeping I will make no further attempts to fix this for the time being.
This repository is in NO way affiliated to Komoot. It uses non-public APIs to extract user data and will cease to work as soon as their APIs change.
The repository contains two scripts
- pykomoot_gpx.py Download GPX tracks of planned and recorded tours.
- pykomoot_tours.py Store tour data (e.g. name, date, duration, distance, ...) in a CSV file.
- Recent version of Python 3
- requests
E.g. with Conda installed, run
$ git clone https://github.com/matthias-hi/komoot-export.git komoot-export
$ cd komoot-export
$ source activate pykomoot-env
- Only login via mail + password has been implemented and tested (means no Facebook login).
- The script has been tested with an account having the "Complete Package" (all regions) unlocked.
Download all "recorded" tours into directory "gpx_download/recorded/"
$ ./pykomoot_gpx.py -r gpx_download/recorded/ <email>
Download all "planned" tours into directory "gpx_download/planned/"
$ ./pykomoot_gpx.py -p gpx_download/planned/ <email>
Only download tour data in JSON format (tours.json) which is used as input for pykomoot_tours.py
$ ./pykomoot_gpx.py <email>
Convert tours.json to tours.csv
$ ./pykomoot_tours.py tours.json
Get tours.json by running pykomoot_gpx.py.