Strava Python

👤 abclark 📦 v1.0.0 ⭐ 4.1 ⬇️ 1.7K 下载
💻 开发编程 免费 🔑 需 API Key

📖 技能介绍


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)

小葱技能7w4.net持续更新中。


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

  • Python 3.7+
  • stravalib package
  • Strava API credentials (free)

Setup

  1. Install dependencies: bash pip install stravalib

  2. Run setup: bash 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: - "Show my recent Strava activities" - "What are my Strava stats this week?" - "What was my last Strava workout?"

Files

  • strava_control.py - Main controller script
  • setup.py - Interactive setup wizard
  • SKILL.md - This file
  • ~/.strava_credentials.json - Credentials (auto-generated)

Notes

  • Requires Strava account (free)
  • API credentials are personal and should not be shared
  • Rate limits: 100 requests per 15 minutes, 1,000 daily

🤖 AI 评测

这个 Skill 质量良好,功能实用且文档详细。设置过程有引导提示,对新手友好,查询活动、统计和最近运动的功能完整。代码逻辑清晰可靠,能自动处理 token 刷新。主要不足是缺少单位切换(只有英里),错误提示有时不够明确,且没有测试覆盖。对于需要查看 Strava 数据的用户来说,这是一个可用且相对完善的选择。

📊 多维度评分

适应性4
规范性3.9
有效性4.2
可靠性4
可信度4.3

📁 包含文件 (7 个)

📄 CHANGELOG.md 668 B
📄 README.md 2.6 KB
📄 SKILL.md 1.7 KB
📄 _meta.json 132 B
📄 setup.py 2.5 KB
📄 skill-card.md 2.1 KB
📄 strava_control.py 3.9 KB