Xpersona
T

Taiwan Basketball

CLAWHUB · Unverified

Taiwan professional basketball stats, scores, schedules, player data, live scores, box scores, notifications, and transactions for PLG and TPBL.

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17eqyg6ss9nsqf9d09fs717w983hsyn:taiwan-basketball
  1. Install using `clawhub skill install s17eqyg6ss9nsqf9d09fs717w983hsyn:taiwan-basketball` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ichendong/taiwan-basketball before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ichendong-taiwan-basketball/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

150,052 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: taiwan-basketball
description: "Taiwan professional basketball stats, scores, schedules, player data, live scores, box scores, notifications, and transactions for PLG and TPBL."
tags: ["plg", "tpbl", "basketball", "taiwan", "sports", "scores", "standings"]
version: 1.3.6
metadata:
  openclaw:
    emoji: 🏀
    requires:
      bins:
        - uv
      anyBins:
        - python3
---

# Taiwan Basketball Skill - 台灣職籃資訊查詢 🏀

Query PLG (P. LEAGUE+) and TPBL (台灣職業籃球大聯盟) game results, schedules, standings, player stats, league leaders, live scores, box scores, notifications, and transactions.

## Data Sources

| Source | Description |
|--------|-------------|
| PLG official website | HTML scraping (server-side rendered) |
| TPBL official REST API | `api.tpbl.basketball` |
| 台灣籃球維基館 | Scrapling StealthyFetcher (bypasses Anubis protection) |
| Local SQLite DB | `~/.local/share/taiwan-basketball/basketball.db` |

## Features

| Feature | Script | Source |
|---------|--------|--------|
| Schedule (with countdown) | `basketball_schedule.py` | PLG website / TPBL API |
| Standings | `basketball_standings.py` | PLG website / TPBL API |
| Game results | `basketball_games.py` | PLG website / TPBL API |
| Player stats | `basketball_player.py` | PLG website / TPBL API |
| League leaders | `basketball_leaders.py` | PLG website / TPBL API |
| Player comparison | `basketball_compare.py` | PLG website / TPBL API |
| **Live scores** ✨ | `basketball_live.py` | TPBL API / PLG time-based |
| **Box Score** ✨ | `basketball_boxscore.py` | TPBL API / PLG website |
| **Notifications** ✨ | `basketball_notify.py` | PLG website / TPBL API |
| **Transactions** ✨ | `basketball_transactions.py` | PLG news / TPBL API |
| **Wiki (awards/history)** ✨ | `_wiki_api.py` | 台灣籃球維基館 (Scrapling StealthyFetcher) |

## Architecture

```
scripts/
  _cache.py            # 磁碟 TTL 快取模組
  _http.py             # HTTP 工具(重試 / 快取)
  _utils.py            # 共用工具(格式化、球隊別名、球員別名、並行擷取)
  _tpbl_api.py         # TPBL REST API 封裝
  _plg_api.py          # PLG HTML 爬蟲封裝
  _wiki_api.py         # 台灣籃球維基館(Scrapling StealthyFetcher 繞過 Anubis)
  _basketball_api.py   # 兼容性匯入層(維持所有腳本相容)
  _db.py               # SQLite 資料持久化模組
  basketball_*.py      # CLI 腳本
```

**並行擷取**:所有 `--league all` 查詢均使用 `ThreadPoolExecutor` 並行發送 PLG/TPBL 請求,大幅縮短等待時間。

## Quick Start

All scripts use `uv run` for dependency management.

### Schedule

```bash
uv run scripts/basketball_schedule.py --league plg
uv run scripts/basketball_schedule.py --league tpbl
uv run scripts/basketball_schedule.py --league all       # PLG + TPBL 合併查詢
uv run scripts/basketball_schedule.py -l plg --team 勇士
uv run scripts/basketball_schedule.py -l all --next      # 只顯示下一場比賽及倒數
uv run scripts/basketball_schedule.py -l all --format table
uv run scripts/basketball_schedule.py -l all --stage playoffs    # 只顯示季後賽賽程
uv run scripts/basketball_schedule.py -l tpbl --stage play-in   # 只顯示季後挑戰賽賽程
```

### Standings

```bash
uv run scripts/basketball_standings.py --lea

README.md

# 台灣職籃 🏀

OpenClaw Agent Skill — 台灣職業籃球資訊查詢,支援 PLG(P. LEAGUE+)與 TPBL(台灣職業籃球大聯盟)。

## 版本

v1.3.6

## 完整文件

詳見 [SKILL.md](SKILL.md)。

## 功能總覽

| 功能 | 說明 |
|------|------|
| 賽程查詢 | PLG / TPBL 賽程、倒數計時、球隊篩選 |
| 比賽結果 | 最近比賽結果、球隊篩選 |
| 戰績排行 | PLG / TPBL 排名 |
| 球員數據 | 歷年數據、每季效力球隊、別名搜尋 |
| 排行榜 | 得分王、籃板王、助攻王等 |
| 球員比較 | 兩位球員對比 |
| 即時比分 | 進行中的比賽分數 |
| Box Score ✨ | 單場詳細球員數據(TPBL 用 Scrapling StealthyFetcher 爬取) |
| 比賽提醒 | 訂閱球隊、自動通知 |
| 球員異動 | 交易、簽約、轉隊 |
| 賽制過濾 ✨ | 例行賽、季後賽、季後挑戰賽、總冠軍賽、熱身賽 |
| 維基館查詢 ✨ | 台灣籃球維基館歷史資料(跨聯盟經歷、獎項、T1 數據) |

## 快速開始

所有腳本使用 `uv run` 執行:

```bash
# 雙聯盟賽程(並行查詢)
uv run scripts/basketball_schedule.py --league all

# 戰績排行
uv run scripts/basketball_standings.py --league plg
uv run scripts/basketball_standings.py --league tpbl

# 最近比賽結果
uv run scripts/basketball_games.py --league all --last 5

# 球員數據(支援別名:高柏鎧↔吉爾貎克)
uv run scripts/basketball_player.py --league all --player 高柏鎧
uv run scripts/basketball_player.py --league plg --player 飛米

# 季後賽賽程
uv run scripts/basketball_schedule.py --league all --stage playoffs

# 即時比分
uv run scripts/basketball_live.py --league all

# Box Score
uv run scripts/basketball_boxscore.py --league tpbl --game-id 123

# 比賽提醒
uv run scripts/basketball_notify.py add --team 戰神 --league tpbl
uv run scripts/basketball_notify.py check --hours 24

# 球員異動
uv run scripts/basketball_transactions.py --league all
```

## 更新紀錄

### v1.3.6 (2026-06-12)

**Bug Fix**

- 🐛 PLG 總冠軍賽 G4 即時比分誤判為「completed」— 已修復
  - 根因:`_parse_schedule_page()` 看到 PLG 官網賽程頁的即時分數 > 0 就當作比賽結束
  - 修法:比分 > 0 時再檢查比賽時間是否落在 live window(3 小時)內,是的話標 `live` 而非 `completed`
  - 效果:`basketball_live.py` 現在能正確顯示 PLG 進行中比賽,`basketball_games.py` 不再誤報

### v1.3.3 (2026-05-11)

**重構**

- 🔄 Camoufox 全面替換為 Scrapling StealthyFetcher
  - `_wiki_api.py` 維基館爬蟲改用 `StealthyFetcher.fetch()` 一行搞定
  - `_tpbl_boxscore_scraper.py` Box Score 爬蟲同步改用 StealthyFetcher
  - `_tpbl_api.py` 註解與錯誤訊息同步更新
  - 文字提取改用 `page.css()[0].get_all_text()` 取代 Playwright API
  - 移除所有 camoufox 直接依賴,改用 scrapling(共用 CPBL skill venv)

### v1.3.2 (2026-05-10)

**新功能**

- 🐛 TPBL Box Score 改用 Scrapling StealthyFetcher 爬蟲!不再依賴不開放的 API 端點
  - `_tpbl_boxscore_scraper.py` 模組,用 StealthyFetcher 渲染 JS 頁面並爬取完整球員數據
  - `basketball_boxscore.py --league tpbl --game-id 6316` 現在可以正常顯示整場 Box Score
  - 自動 fallback:API 撈不到時自動切 StealthyFetcher 爬蟲

### v1.3.1 (2026-05-10)

**修復**

- 🐛 `basketball_games.py` 新增 `--date` 參數,支援指定日期查詢比賽結果
- 🐛 `basketball_games.py` 現在也會包含正在進行中的比賽(之前只回傳 COMPLETED 的比賽)
- 🐛 `basketball_live.py` 預設 `--no-cache`,即時比分不再使用快取資料

### v1.3.0 (2026-05-11)

**新功能**

- 🏀 **賽制過濾**:`--stage` 參數支援 `regular`/`playoffs`/`play-in`/`finals`/`preseason`
  - TPBL:`division_id` 判斷(8=熱身賽、9=例行賽、11=季後挑戰賽、12=季後賽)
  - PLG:從不同 URL 抓取各賽制頁面
  - 中文化顯示:例行賽、季後賽、季後挑戰賽、總冠軍賽、熱身賽

- 🏀 **球員每季效力球隊**:PLG 球員不再永遠顯示現役球隊
  - 三層判斷:Preciser API → 經歷區塊 → 頁面基本資料
  - 球隊名正規化:移除「籃球隊」後綴和英文名

- 🏀 **球員別名搜尋**:歸化改名、跨聯盟譯名雙向解析
  - 別名對照表:高柏鎧↔吉爾貝克、飛米↔Flymy/Ironmy 等
  - PLG 和 TPBL 雙向別名解析

- 🏀 **台灣籃球維基館整合**:Scrapling StealthyFetcher 繞過 Anubis 防護
  - 球員跨聯盟經歷

_meta.json

{
  "ownerId": "kn74yvh464mxtptw5ttwt8shm180bcvd",
  "slug": "taiwan-basketball",
  "version": "1.3.6",
  "publishedAt": 1781271241825
}

skill-card.md

## Description:

Taiwan professional basketball stats, scores, schedules, player data, live scores, box scores, notifications, and transactions for PLG and TPBL.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ichendong](https://clawhub.ai/user/ichendong)

### License/Terms of Use:

MIT-0

## Use Case:

Sports analysts, fans, and agents use this skill to retrieve Taiwan professional basketball schedules, scores, standings, player statistics, box scores, reminders, and transaction updates for PLG and TPBL.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The security scan reports an isolation risk because wiki and TPBL box-score scraping depend on Scrapling from a shared CPBL virtual environment.

Mitigation: Vendor or declare Scrapling in this skill's own isolated environment before deployment, and review that dependency path during installation.

Risk: The skill writes a local cache and SQLite database under the user's home directory.

Mitigation: Run it with an appropriate user account and review stored subscriptions, cached sports data, and database permissions before scheduled or shared use.

Risk: Scraping and live-score results can be incomplete or stale when source sites change or when PLG live scores are estimated from schedule windows.

Mitigation: Treat outputs as informational and verify time-sensitive scores or box scores against the official PLG or TPBL source when accuracy matters.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/ichendong/skills/taiwan-basketball)
- [PLG official website](https://pleagueofficial.com)
- [TPBL official API](https://api.tpbl.basketball/api)
- [Taiwan Basketball Wiki](https://wikibasketball.dils.tku.edu.tw/wiki/index.php)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration]

**Output Format:** [Markdown or JSON/table CLI output, depending on the invoked script and format option]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May read live web data, use cached data, and write local SQLite records for subscriptions, transactions, schedules, and results.]

## Skill Version(s):

1.3.6 (source: frontmatter, README, server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skill.json

{
  "name": "taiwan-basketball",
  "version": "1.3.6",
  "description": "Taiwan professional basketball stats, scores, schedules, player data, live scores, box scores, notifications, and transactions for PLG and TPBL.",
  "tags": ["plg", "tpbl", "basketball", "taiwan", "sports", "scores", "standings"],
  "author": "ichendong"
}

Sponsored

Ads related to Taiwan Basketball and adjacent AI workflows.