Giter Site home page Giter Site logo

timschneeb / komootgpx Goto Github PK

View Code? Open in Web Editor NEW
66.0 4.0 6.0 44 KB

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

License: GNU General Public License v3.0

Python 100.00%
komoot sports gps gpx map outdoor bulk-download

komootgpx's Introduction

KomootGPX

Download Komoot tracks and highlights as GPX files with metadata

Python 3 or later is required.

Installation

Download from PyPI:

pip install komootgpx

Usage

Run script in interactive mode

komootgpx
Enter your mail address (komoot.de)
>[email protected]

Enter your password (input hidden)
Password:

Logging in...
Logged in as 'thepbone'

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 '~/Development/KomootGPX/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
[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
        -D, --add-date                     Add date to file name
[Filters]
        -f, --filter=type                  Filter by track type (either "planned" or "recorded")
[Generator]
        -o, --output                       Output directory (default: working directory)
        -e, --no-poi                       Do not include highlights as POIs

komootgpx's People

Contributors

eurobin-project avatar marcin-gryszkalis avatar simon04 avatar timschneeb avatar ubergesundheit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

komootgpx's Issues

Can't run - attempted relative import with no known parent package

I tried many things, but in the end I always get this message:

attempted relative import with no known parent package

Is there a step by step for rookies? I tried the one in the readme but I'm either missing something or it doesn't give all the required instructions.

Tried on Slackware current and Ubuntu 23.04.

Thanks!

Resolve non unique names when downloading all

Script works well but I have a lot of tracks with the same default name. When downloading all the same track gets overwritten over and over again. Adding an increment would be a good addition in my opinion.

ERROR No matching distribution found for komootgpx

When I run pip install komootgpx

I get:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f4aab026290>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/komootgpx/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f4aa9880150>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/komootgpx/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f4aa98809d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/komootgpx/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f4aa9881290>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/komootgpx/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f4aa9881c50>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/komootgpx/
ERROR: Could not find a version that satisfies the requirement komootgpx (from versions: none)
ERROR: No matching distribution found for komootgpx

Any idea what might cause this?

multiple uploads

would be pretty awesome to have something that upload multiple routes in .gpx to my profile

Unknown tour id selected

Thank you for the code.

Unfortunately, I only get this error message:

Logging in...
Logged in as 'XXX' <= censored
Interactive mode. Use '--help' for usage details.
Found 1 tours

1126933058 => Dreifaltigkeitskirche Kappl – Feisnitz Stausee Runde von Marktredwitz (touringbicycle; 51.035km; tour_planned)

Enter a tour id to download
>3319445

Fetching tours of user '3375363794682'...
Found 1 tours
Unknown tour id selected. These are all available tours on your profile:
Found 1 tours

1126933058 => Dreifaltigkeitskirche Kappl – Feisnitz Stausee Runde von Marktredwitz (touringbicycle; 51.035km; tour_planned)

So what are the restrictions of your code?

The ID is certainly correct, see:
https://www.komoot.de/smarttour/3319445

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.