Strava Python
by @abclark
Query Strava activities, stats, and workout data using Python/stravalib with interactive setup
clawhub install strava-pythonπ About This Skill
name: strava-python version: 1.0.0 description: Query Strava activities, stats, and workout data using Python/stravalib with interactive setup homepage: https://www.strava.com metadata: openclaw: emoji: π requires: bins: - python3 install: - id: pip kind: pip package: stravalib label: Install stravalib (pip)
Strava Python
Query your Strava activities, stats, and workout data through OpenClaw using Python and stravalib.
Why this skill vs others: Uses Python/stravalib with an interactive setup wizard (vs curl-based skills requiring manual JSON configuration).
Requirements
stravalib packageSetup
1. Install dependencies:
pip install stravalib
2. Run setup:
python3 setup.py
This will:
- Guide you through creating a Strava API app
- Handle OAuth authentication
- Save credentials to ~/.strava_credentials.json
Commands
Recent activities:
python3 strava_control.py recent
Weekly/monthly stats:
python3 strava_control.py stats
Last activity:
python3 strava_control.py last
Examples
Ask OpenClaw:
Files
strava_control.py - Main controller scriptsetup.py - Interactive setup wizardSKILL.md - This file~/.strava_credentials.json - Credentials (auto-generated)Notes
π‘ Examples
Ask OpenClaw:
βοΈ Configuration
1. Install dependencies:
pip install stravalib
2. Run setup:
python3 setup.py
This will:
- Guide you through creating a Strava API app
- Handle OAuth authentication
- Save credentials to ~/.strava_credentials.json