闲社服务运行正常AI智能体自动化平台
y

雅虎梦幻棒球

技能标识:yahoo-fantasy-baseball

>

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.19
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

雅虎梦幻棒球

Yahoo Fantasy Baseball

通过Yahoo Fantasy Sports API查询您的Yahoo Fantasy棒球联盟:查看数据并优化每日阵容。只读模式——不进行阵容修改。

系统要求

  • - Python 3.10+
  • yahoofantasyapi — Yahoo Fantasy Sports API封装库

安装: 首次使用前,运行--setup创建本地.deps/虚拟环境并从requirements.txt安装依赖。后续运行会复用现有虚拟环境。如需强制重新安装,请删除.deps/目录后再次运行--setup。

bash
python3 yahoo-fantasy-baseball.py --setup

设置

1. 创建Yahoo开发者应用

  1. 1. 访问 https://developer.yahoo.com/apps/
  2. 点击创建应用
  3. 将重定向URI设置为oob(带外模式——Yahoo会在屏幕上显示授权码而非重定向到URL)
  4. 复制消费者密钥和消费者密钥密文

2. 身份验证

bash
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py auth

按照提示输入您的消费者密钥和密文。浏览器窗口将打开进行Yahoo OAuth授权。令牌会自动缓存——只需执行此操作一次。

3. 查找您的联盟

bash
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py leagues

4. 设置默认值

bash
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py config --league 12345

该技能会自动检测您在联盟中的球队。您也可以显式设置:

bash
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py config --league 12345 --team 3

快速开始

bash

查看您的阵容


python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py roster

每日阵容状态(谁在比赛,谁休息)

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py today

指定日期的阵容状态

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py day --date 2026-03-25

获取优化建议

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py optimize

联盟排名

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py standings

命令

数据命令(只读)

bash

身份验证与配置


python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py auth
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py config --league 12345 --team 3 --season 2026
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py config

联盟与球队

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py leagues [--season YEAR] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py teams

阵容与打线

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py roster [--date YYYY-MM-DD] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py lineup [--week N]

排名与对阵

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py standings python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py matchup [--week N] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py scoreboard [--week N]

球员与选秀

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py players [--search NAME] [--position POS] [--status FA|A|T|W|ALL] [--sort OR|AR|PTS|NAME|HR|ERA|...] [--sort-type season|lastweek|lastmonth] [--stat-season YEAR] [--count N] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py draft [--team ID] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py transactions [--type add,drop,trade] [--since 3d] python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py injuries

打线检查 — 确认的MLB打线与梦幻阵容对比

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py lineup-check [--date YYYY-MM-DD]

日常管理

bash

今日:带MLB赛程感知的阵容状态(day命令的快捷方式,默认使用今天日期)


python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py today

指定日期:指定日期的阵容状态

python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py day --date 2026-03-25

将您的阵容分组为:活跃(球队在比赛)、未比赛(球队休息)、受伤和替补。显示每位球员的合格位置、比赛开始时间(本地时区),并标记可能的先发投手。顶部显示首球时间,以便您知道何时最终确定阵容。today命令是day命令的快捷方式,默认使用今天日期。

bash

杰出表现:昨天所有联盟球队中的最佳表现者


python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py standouts [--date YYYY-MM-DD] [--min-points N] [--count N]

获取联盟中每支球队所有在册球员的每日球员数据,并识别出杰出表现。输出分为两个部分:

  1. 1. 最佳表现者 — 活跃阵容位置中获得最多梦幻积分的球员
  2. 替补遗珠 — 替补席上有显著表现的球员(未计入的积分)

每位球员显示其梦幻积分、关键数据线和成就徽章(例如多轰、10+ K、宝石、完封)。默认显示昨天数据;使用--date指定具体日期。

bash

打线检查:验证活跃球员是否在确认的MLB打线中


python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py lineup-check
python3 /home/claw/.openclaw/workspace/skills/yahoo-fantasy-baseball/yahoo-fantasy-baseball.py lineup-check --date 2026-04-01

将活跃梦幻阵容球员与确认的MLB击球打线(来自MLB Stats API hydrate=lineups)进行交叉比对。标记那些在梦幻先发阵容中但不在其球队确认的真实打线中的位置球员(例如,被划掉、休息、因左/右投手被替补)。投手被排除在外(他们不出现在击球打线中)。球队打线尚未公布的球员不会被标记——仅标记那些打线已公布但缺席的球员。打线通常在比赛开始前1-3小时公布。

bash

优化:带建议的智能阵容分析

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 yahoo-fantasy-baseball-1776066190 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 yahoo-fantasy-baseball-1776066190 技能

通过命令行安装

skillhub install yahoo-fantasy-baseball-1776066190

下载

⬇ 下载 yahoo-fantasy-baseball v0.1.19(免费)

文件大小: 40.86 KB | 发布时间: 2026-4-15 15:06

v0.1.19 最新 2026-4-15 15:06
- Improved code formatting and minor code cleanups in scripts/fantasy.py.
- No user-facing command or feature changes.
- Documentation and functionality remain unchanged.
返回顶部