← 返回
未分类 中文

NBA game schedule today, scores and standings rank.

Get today's NBA game schedule, live scores, final results, and current season standings. Use when the user asks about NBA games today, live NBA scores, game...
获取今日NBA赛程、实时比分、比赛结果和当前赛季排名。用于用户询问今天的NBA比赛、实时NBA比分或比赛情况时。
goog goog 来源
未分类 clawhub v1.0.2 1 版本 99774.3 Key: 无需
★ 0
Stars
📥 442
下载
💾 1
安装
1
版本
#latest

概述

NBA Skill

Fetches live NBA data via the NBA CDN API (scoreboard) and StatMuse HTML (standings).

Data Sources

DataSource
--------------
Today's games & live scoreshttps://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json
Standings (East/West)StatMuse HTML tables — https://www.statmuse.com/nba/ask/nba-2025-26-eastern-conference-standings
Full schedulehttps://www.nba.com/schedule

Quick Usage

Run the script from the skill directory:


# Today's schedule + live scores
python scripts/nba_data.py scoreboard

# Current standings
python scripts/nba_data.py standings

# Both (default)
python scripts/nba_data.py all

On Linux/macOS:

python3 scripts/nba_data.py all

Script: scripts/nba_data.py

  • scoreboard — Fetches today's games from NBA CDN. Shows status (upcoming/live/final), scores, quarter/clock, and game leaders (pts/reb/ast).
  • standings — Scrapes StatMuse for East + West conference tables: rank, team, W, L, pct, home record.
  • all — Both commands combined.

No API key required. Pure stdlib (urllib, json, re).

Workflow

  1. Run python scripts/nba_data.py all (set PYTHONIOENCODING=utf-8 on Windows first).
  2. Run python -c "from datetime import datetime; print(datetime.now().astimezone().tzinfo) to get timezone.
  3. Parse and present output to the user in clean readable format, change UTC time to local timezone.
  4. For deeper stats (player stats, box scores, specific game details), direct user to:
    • https://www.nba.com/game/ for box scores
    • https://www.statmuse.com/nba for historical stats queries

Notes

  • The NBA CDN scoreboard updates every ~30 seconds during live games.
  • Season year in StatMuse URLs (e.g. 2025-26) may need updating at season start.
  • StatMuse standings URL pattern: https://www.statmuse.com/nba/ask/nba-YYYY-YY-[eastern|western]-conference-standings

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-03 08:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 452 📥 227,598
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 243 📥 30,555
knowledge-management

Knowledge card creator, your memory notes

goog
知识卡片生成器:提取用户提供的文本、文件或 URL 中的关键知识,自动匹配合适的卡片类型(概念、备忘录、流程、比较等)。
★ 0 📥 732