运行时依赖
安装命令
点击复制技能文档
Dota 2 统计查询技能(全API覆盖) 此技能使用Python脚本通过OpenDota API查询Dota 2数据,覆盖所有API端点。 工具脚本 Claude代码 ~/.claude/skills/dota2-stats/scripts/dota2_query.py OpenClaw ~/.openclaw/plugin-skills/dota2-stats/scripts/dota2_query.py 仅使用Python标准库,无需第三方依赖。 配置完整的HTTP头以避免403错误。 命令(27个) 玩家命令 python scripts/dota2_query.py search # 查询玩家 python scripts/dota2_query.py player # 玩家信息/排名/胜率 python scripts/dota2_query.py wl [--days/--hero_id/--lobby_type] # 胜负统计 python scripts/dota2_query.py recent # 最近~20场比赛 python scripts/dota2_query.py matches [--limit/--hero_id/--days] # 全部比赛历史 python scripts/dota2_query.py heroes [--limit N] # 英雄使用统计 python scripts/dota2_query.py peers [--limit N] # 常见队友 python scripts/dota2_query.py totals [filters] # 职业生涯总计(杀敌/助攻等) python scripts/dota2_query.py counts # 分类统计 python scripts/dota2_query.py rankings # 玩家英雄排名 python scripts/dota2_query.py ratings # 排名历史 python scripts/dota2_query.py refresh # 刷新玩家数据 比赛命令 python scripts/dota2_query.py match # 单场比赛详情(10名玩家) 英雄命令 python scripts/dota2_query.py hero_list # 所有英雄列表 python scripts/dota2_query.py hero_stats # 全球英雄统计 python scripts/dota2_query.py hero_matchups # 英雄对战胜率 python scripts/dota2_query.py hero_rankings # 英雄排行榜(顶级玩家) python scripts/dota2_query.py benchmarks # 英雄性能基准 全局/职业命令 python scripts/dota2_query.py pro_players # 专业玩家列表 python scripts/dota2_query.py pro_matches [--limit N] # 专业比赛 python scripts/dota2_query.py public_matches [--min_rank] # 公共比赛 python scripts/dota2_query.py live # 现场比赛 python scripts/dota2_query.py teams [--limit N] # 队伍列表 python scripts/dota2_query.py team # 队伍详情+阵容+比赛 python scripts/dota2_query.py leagues # 联赛列表 python scripts/dota2_query.py constants # 游戏常数(英雄/物品等) python scripts/dota2_query.py find_matches --teamA 1,2 --teamB 3,4 # 按英雄阵容搜索 常见过滤器 --days N — 最近N天 --hero_id N — 特定英雄ID --lobby_type N — 大厅类型(7=排名) --game_mode N — 游戏模式 --limit N — 限制结果 --lang zh|en — 输出语言(默认中文) 使用流程 当用户提供玩家名称:search → 获取account_id player → 查看基本信息 recent → 查看最近比赛 Steam ID转换:account_id = steam64_id - 76561197960265728 排名等级 等级 英文 中文 1 Herald 先锋 2 Guardian 卫士 3 Crusader 中军 4 Archon 统帅 5 Legend 传奇 6 Ancient 万古流芳 7 Divine 超凡入圣 8 Immortal 冠绝一世 注意 仅使用Python标准库,无需pip install 配置浏览器级别的HTTP头以防止403错误 玩家需要启用“公共比赛数据” 内置127个英雄的中文名称 根据用户问题的语言选择输出语言,使用--lang en为英文,--lang zh为中文