onelap-ride-download

v1.0.0

从顽鹿竞技 (Onelap) 下载骑行记录 FIT 文件。用于批量导出用户的骑行数据。

0· 148·0 current·0 all-time
by码代码的猿猿@ckboss

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for ckboss/onelap-ride-download.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "onelap-ride-download" (ckboss/onelap-ride-download) from ClawHub.
Skill page: https://clawhub.ai/ckboss/onelap-ride-download
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: curl
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install onelap-ride-download

ClawHub CLI

Package manager switcher

npx clawhub@latest install onelap-ride-download
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description (download Onelap FIT files) align with the instructions: navigate the Onelap analysis page, snapshot the logged-in browser DOM, extract FIT download links and use curl to download them. Required binary (curl) and browser usage are appropriate for the task.
Instruction Scope
Instructions explicitly instruct the agent to use the browser tool to snapshot the logged‑in session and extract links (this is necessary because download links are tied to a logged-in session and time‑limited tokens). However, the SKILL.md contains hard-coded example file-system paths (/home/ckboss/..., .openclaw workspace) which are user-specific and should be parameterized; also the agent will handle URLs that include tokens—be aware these tokens are sensitive and the skill will capture them while parsing the page.
Install Mechanism
This is an instruction-only skill with no install spec or code files; nothing is downloaded or written to disk at install time. That is the lowest-risk install model.
Credentials
The skill requests no environment variables or credentials. Its need to read the logged-in browser state and find time-limited download links is proportional to the stated purpose.
Persistence & Privilege
Skill is not forced-always and uses normal model invocation. It does not request persistent system-wide privileges or attempt to modify other skills' configurations in the instructions provided.
Scan Findings in Context
[unicode-control-chars] unexpected: The regex scanner found unicode control characters inside SKILL.md. This could be benign (odd formatting or non-printing characters) but such characters are sometimes used in prompt-injection attacks. Review the raw SKILL.md for hidden characters and confirm the instructions are exactly what you expect before installing.
Assessment
This skill appears to do what it says: it uses your logged-in browser session to find time-limited FIT download links and then uses curl to save them locally. Before installing or running it: (1) inspect the SKILL.md for hidden/unexpected characters (scanner flagged unicode control chars); (2) remove or change hard-coded paths (/home/ckboss/...) to directories you control; (3) confirm you are comfortable allowing the agent to read the browser DOM (it will see session tokens embedded in links); and (4) verify that download hosts (e.g., fits.rfsvr.net) are expected by the Onelap service. If you have any doubt, ask the skill author for a parameterized version that lets you set the workspace/download directories and provides an explanation for any unusual characters in the file.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🚴 Clawdis
Binscurl
latestvk976dr7z228vrvc0t86jzr91f983d1rr
148downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Onelap 骑行数据下载 Skill

从顽鹿竞技 (Onelap) 平台下载用户的骑行记录 FIT 文件。

使用场景

适用场景:

  • 备份骑行数据
  • 导出数据到第三方平台(Strava、Garmin Connect 等)
  • 本地分析骑行数据
  • 批量导出指定时间段的骑行记录
  • 按指定日期范围下载(如"下载 3 月 16 号到 19 号的文件")

不适用:

  • 实时骑行数据(需要骑行结束后才有记录)
  • 非 FIT 格式需求(可后续转换)

前置条件

  1. 用户已登录顽鹿竞技账号
  2. 浏览器已打开并保持在登录状态
  3. 知道用户的骑行记录页面 URL

操作步骤

1. 访问骑行记录页面

# 导航到分析页面
browser navigate https://u.onelap.cn/analysis

2. 获取页面内容

# 获取页面快照,找到 FIT 文件下载链接
browser snapshot --refs aria --depth 5

3. 解析下载链接

从页面中找到类似这样的 FIT 文件链接:

http://fits.rfsvr.net/MAGENE_C416_2026-03-19-09-34-33_1078400_1773886046761.fit?e=1773892823&token=xxx

4. 批量下载

# 创建保存目录
mkdir -p /home/ckboss/Downloads/onelap-rides-YYYYMMDD

# 下载单个文件
curl -s -o "2026-03-19_09-34.fit" "http://fits.rfsvr.net/xxx.fit?token=xxx"

# 批量下载示例(按日期范围)
cd /home/ckboss/Downloads/onelap-rides-0316-0319
curl -s -o "2026-03-16_09-24.fit" "URL_1" && echo "✓ 3/16 早"
curl -s -o "2026-03-16_21-37.fit" "URL_2" && echo "✓ 3/16 晚"
# ... 继续下载其他文件

5. 验证下载

# 检查下载的文件
ls -lh /home/ckboss/Downloads/onelap-rides-*/

快速命令模板

下载指定日期范围的骑行记录

# 用户指令示例:
# "下载 3 月 16 号到 19 号的骑行文件"
# "下载 2026-03-16 到 2026-03-19 的 fit 文件"
# "下载本周的骑行数据"

# 1. 解析用户指定的日期范围
# 格式支持:
#   - "3 月 16 号到 19 号" → 2026-03-16 ~ 2026-03-19
#   - "2026-03-16 到 2026-03-19"
#   - "本周" → 本周一到今日
#   - "上周" → 上周一到上周日

# 2. 创建工作目录
mkdir -p /home/ckboss/.openclaw/workspace/onelap-rides

# 3. 访问页面获取链接
browser navigate https://u.onelap.cn/analysis
browser snapshot --refs aria --depth 5

# 4. 从页面中筛选指定日期范围的 FIT 链接
# 页面数据结构示例:
#   - generic [ref=e26]: 2026-03-19 09:34
#   - link [ref=e32]: http://fits.rfsvr.net/xxx.fit?token=xxx

# 5. 批量下载(按日期范围过滤)
cd /home/ckboss/.openclaw/workspace/onelap-rides

# 示例:下载 3 月 16 日 -19 日 的文件
curl -s -o "2026-03-16_09-24.fit" "URL_1" && echo "✓ 3/16 早"
curl -s -o "2026-03-16_21-37.fit" "URL_2" && echo "✓ 3/16 晚"
curl -s -o "2026-03-17_09-28.fit" "URL_3" && echo "✓ 3/17 早"
# ... 继续下载范围内的其他文件

# 6. 复制到下载目录(以日期范围命名)
mkdir -p /home/ckboss/Downloads/onelap-rides-0316-0319
cp 2026-03-1{6,7,8,9}_*.fit /home/ckboss/Downloads/onelap-rides-0316-0319/

下载最近 7 天的骑行记录

# 1. 创建工作目录
mkdir -p /home/ckboss/.openclaw/workspace/onelap-rides

# 2. 访问页面获取链接
browser navigate https://u.onelap.cn/analysis
browser snapshot --refs aria --depth 5

# 3. 批量下载(替换为实际链接)
cd /home/ckboss/.openclaw/workspace/onelap-rides
curl -s -o "DATE_TIME.fit" "FIT_URL" && echo "✓ 下载完成"

# 4. 复制到下载目录
mkdir -p /home/ckboss/Downloads/onelap-rides-$(date +%m%d)
cp *.fit /home/ckboss/Downloads/onelap-rides-$(date +%m%d)/

注意事项

⚠️ 链接有效期: FIT 文件下载链接有时效性(通常几小时),需尽快下载

⚠️ 登录状态: 确保浏览器保持登录状态,否则无法获取有效链接

⚠️ 批量下载: 建议分批下载,避免请求过于频繁

⚠️ 文件命名: 建议按 日期_时间.fit 格式命名,便于管理

⚠️ 日期范围解析:

  • 中文格式:"3 月 16 号到 19 号" → 2026-03-16 ~ 2026-03-19
  • ISO 格式:"2026-03-16 到 2026-03-19"
  • 相对日期:"本周"、"上周"、"最近 7 天"

数据用途

下载的 FIT 文件可以:

  • 导入到 Garmin ConnectStravaTrainingPeaks 等平台
  • 使用 GoldenCheetahWKO5 等软件分析
  • 使用在线工具转换为 TCXGPX 格式
  • 本地备份和统计分析

相关文件

  • 工作目录:/home/ckboss/.openclaw/workspace/onelap-rides/
  • 输出目录:/home/ckboss/Downloads/onelap-rides-*/

用户指令示例

# 指定日期范围
"下载 3 月 16 号到 19 号的骑行文件"
"下载 2026-03-16 到 2026-03-19 的 fit 文件"
"下载 3 月 16 日到 3 月 19 日的所有骑行记录"

# 相对日期
"下载本周的骑行数据"
"下载上周的骑行记录"
"下载最近 7 天的骑行文件"

# 单日下载
"下载今天早上的骑行文件"
"下载 3 月 18 号的骑行数据"

输出示例

用户指令:"下载 3 月 16 号到 19 号的骑行文件"

预期输出:

✅ 完成!已下载 3 月 16 日 -19 日 的骑行记录

📁 文件位置:/home/ckboss/Downloads/onelap-rides-0316-0319/

📊 共 7 个文件:
| 日期 | 时间 | 文件 |
|------|------|------|
| 3/16 | 09:24 | 2026-03-16_09-24.fit |
| 3/16 | 21:37 | 2026-03-16_21-37.fit |
| 3/17 | 09:28 | 2026-03-17_09-28.fit |
| 3/17 | 20:48 | 2026-03-17_20-48.fit |
| 3/18 | 09:35 | 2026-03-18_09-35.fit |
| 3/18 | 21:27 | 2026-03-18_21-27.fit |
| 3/19 | 09:34 | 2026-03-19_09-34.fit |

总计:332KB,7 次骑行 🚴‍♂️

最后更新:2026-03-19

Comments

Loading comments...