otobrglez / krk-bike

Simple CLI tools for fetching Krk Bike routes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Krk Bike CLI

Command line client for fetching biking routes (GPX) from Krk Bike service.

Krk Bike Routes

Usage

To obtain API key you need to execute MITM attack (use something like Charles Proxy or mitmproxy).

Then use this tool,...

cd krk-bike && gem install bundler && bundle install
export KRK_BIKE_API_KEY="<api key>"

# Fetch all tracks
./cli.rb tracks

For fetching GPX files out out tracks with help of wget and jq.

./cli.rb tracks | jq -r ".data[].gpx" | xargs -n1 wget

Fetch specific category (0 - MTB)

cat json/tracks.json | \
    jq -r '.data[] | select(.category | contains(0))?' | \
    jq -r '.gpx' | \
    xargs -n1 wget

Official Apps

Please use official apps.

That's all

Fin.

About

Simple CLI tools for fetching Krk Bike routes


Languages

Language:Ruby 100.0%