Tool that helps to download tour data from Komoot and import it into an ElasticSearch database.
This tool works with the Komoot API and needs to authenticate against the
API. You need to log into the web UI and obtain your
user id by clicking on your profile and extract the ID from the URL, e.g.
given this URL https://www.komoot.de/user/1234567890
your user id would be
1234567890
.
To call the API as this user you need to obtain your session information by
having a look at a request, e.g. in Firefox Storage
Inspector.
This should give you three cookies: kmt_auth
, kmt_session
and
kmt_session.sig
.
Then store those values as bash variables:
# Enter your values here
KOMOOT_USER_ID="<...>"
KOMOOT_COOKIE="kmt_auth=<...>; kmt_session=<...>; kmt_session.sig=<...>"
This repository contains a Dockerfile that allows to build a docker container that comes with all necessary tools pre-installed:
docker build -t kmt2es:latest .
docker run --rm -it kmt2es \
--user-id ${KOMOOT_USER_ID} \
--cookie "${KOMOOT_COOKIE}" \
--elasticsearch-host http://localhost:9200