Fetches live NBA data via the NBA CDN API (scoreboard) and StatMuse HTML (standings).
| Data | Source |
|---|---|
| ------ | -------- |
| Today's games & live scores | https://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 schedule | https://www.nba.com/schedule |
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
scripts/nba_data.pyscoreboard — 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).
python scripts/nba_data.py all (set PYTHONIOENCODING=utf-8 on Windows first).python -c "from datetime import datetime; print(datetime.now().astimezone().tzinfo) to get timezone.https://www.nba.com/game/ for box scoreshttps://www.statmuse.com/nba for historical stats queries2025-26) may need updating at season start.https://www.statmuse.com/nba/ask/nba-YYYY-YY-[eastern|western]-conference-standings共 1 个版本