Skip to main content

Download Komoot tracks and highlights as GPX files (including metadata). Supports bulk-download.

Project description

KomootGPX

Download Komoot tracks and highlights as GPX files with metadata

Python 3 or later is required.

Features

  • Download recorded & planned trips as GPX files
  • Bulk-download all trips stored in your profile (requires authentication)
  • Includes metadata such as estimated duration, total elevation, difficulty and the original Komoot trip URL
  • Can add trip highlights as POIs into the GPX file
    • Includes user comments & image URLs for each highlight POI, as those often contain helpful information about the location
    • Additionally custom Komoot waypoints can be added as POIs

Installation

Download from PyPI:

pip install komootgpx

Testing

To run from local clone of repo (without installation):

uv run python -m komootgpx --help

Usage

Run script in interactive mode

uv run komootgpx
Enter your mail address (komoot.de)
>example@mail.com

Enter your password (input hidden)
Password:

Logging in...
Logged in as 'Example User'

3331210XX => Example trip A (hike; 20.766km; tour_recorded)
3331214XX => Example trip B (hike; 13.863km; tour_planned)

Enter a tour id to download
>3331210XX

Fetching tours of user '153434028XXX'...
Fetching tour '3331210XX'...
Fetching highlight '2635XX'...
Fetching highlight '15840XX'...
GPX file written to 'Example trip A-3331210XX.gpx'

Display advanced usage information

komootgpx --help
komootgpx.py [options]

[Authentication]
        -m, --mail=mail_address            Login using specified email address
        -p, --pass=password                Use provided password and skip interactive prompt
        -n, --anonymous                    Skip authentication, no interactive prompt, valid only with -d

[Tours]
        -l, --list-tours                   List all tours of the logged in user
        -d, --make-gpx=tour_id             Download tour as GPX
        -a, --make-all                     Download all tours
        -s, --skip-existing                Do not download and save GPX if the file already exists, ignored with -d
        -r, --remove-deleted               Remove GPX files (from --output dir) without corresponding tour in Komoot (deleted and previous versions)
        -I, --id-filename                  Use only tour id for filename (no title)
        -D, --add-date                     Add tour date to file name
        --max-title-length=num             Crop title used in filename to given length (default: -1 = no limit)
        -L, --language                     Set tour description to specific language (fr, de, en..., default: en)

[Filters]
        -t, --tour-type=type               Filter by track type ("planned", "recorded" or "all")
        --start-date=YYYY-MM-DD            Filter tours on or after specified date (optional)
        --end-date=YYYY-MM-DD              Filter tours on or before specified date (optional)
        --sport=type                       Sport type to filter (e.g. "hike")
        --private-only                     Include only private tours
        --public-only                      Include only public tours

[Generator]
        -o, --output=directory             Output directory (default: working directory)
        -e, --no-poi                       Do not include highlights as POIs
        -K, --karoo                        Save all POIs with Generic type (Hammerhead Karoo import compatibility)
        --max-desc-length=count            Limit description length in characters (default: -1 = no limit)

[Images]
        -i, --add-images                   Add tour images
        --all-images                       Download images from other users too - copyright review is required

[Other]
        --debug                            Save all Komoot API responses in set of .txt files

Authentication

It's required to be properly authenticated with username (email) and password to perform most of available operations:

  • list user's tours (both planned and completed)
  • download all tours
  • download tour that has Visibility set to "Only me" or "Close friends"

Without authentication you can download any tour that is public (i.e. Visibility set to "Anyone"). To disable authentication use --anonymous option.

In case given tour id is not available without authentication you'll receive following message: Error 403: {'status': 403, 'error': 'AccessDenied', 'message': 'Access denied without authentication.'}.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

komootgpx-1.5.2.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

komootgpx-1.5.2-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file komootgpx-1.5.2.tar.gz.

File metadata

  • Download URL: komootgpx-1.5.2.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for komootgpx-1.5.2.tar.gz
Algorithm Hash digest
SHA256 db1b6d06352ccf565bda1ddf317fd29e38a50f05ef4dbd417663d0e6654b2076
MD5 24dd21da0d9fe5fa82d4c321cecdea53
BLAKE2b-256 1a8f86135c528582f659b94595b4594b154cf979bef11343bd406ca8efe1186b

See more details on using hashes here.

File details

Details for the file komootgpx-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: komootgpx-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for komootgpx-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d88c5e9216eb8834066040a70b5bd6cb18e8b94e812935c32b750b6c6db17a52
MD5 1732f766e034a62e9a147b1af49f58c2
BLAKE2b-256 d79c2c6bd72b8901a2e1a756acb32184565af77c447608da7714beab9ec29808

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page