Xpersona
B

bilibili-hot

CLAWHUB · Unverified

自动抓取Bilibili全站排行榜视频数据,包含详细的视频统计信息 Skill: bilibili-hot Owner: yangjinghua0127 Summary: 自动抓取Bilibili全站排行榜视频数据,包含详细的视频统计信息 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-26T05:30:37.924Z | auto Initial release of bilibili-hot. - Automatically fetches Bilibili overall ranking video data using the official API. - Retrieves detailed statistics for the Top 50 trending videos, including title, UP主, play count, danmu, likes, coins, favorites, and direct

62
Rank
84
Safety
953
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 953 downloads reported by the source. Last updated 10/12/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 s172r1btf7y9xywd5xpygdffmh83mcq5:bilibili-hot
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yangjinghua0127-bilibili-hot/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

4,538 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: bilibili-hot
description: "自动抓取Bilibili全站排行榜视频数据,包含详细的视频统计信息"
metadata: { "openclaw": { "emoji": "📺", "requires": { "bins": ["node"] } } }
---

# Skill: Bilibili热搜抓取

自动抓取Bilibili全站排行榜视频数据,包含详细的视频统计信息。

## 触发方式

```
B站热搜
bilibili hot
获取B站热榜
B站热门
b站排行榜
```

## 能力

- 使用Bilibili官方API获取全站排行榜
- 抓取Top 50热门视频的完整信息
- 提取视频标题、UP主、播放量、弹幕数等详细数据
- 返回结构化视频数据(JSON格式)
- 生成易读的文本格式输出

## 输出格式

```json
[
  {
    "rank": 1,
    "title": "⚡对 对 子 战 神⚡",
    "up": "洛温阿特金森",
    "play": "863.0万播放",
    "danmu": "4.0万弹幕",
    "like": "86.1万点赞",
    "coin": "22.2万投币",
    "favorite": "26.9万收藏",
    "score": 0,
    "link": "https://www.bilibili.com/video/BV1bXAJz8EYC",
    "type": "全站榜"
  }
]
```

控制台输出示例:

```
📊 Bilibili全站排行榜 (Top 50):
================================================================================
 1. ⚡对 对 子 战 神⚡
   👤 UP主: 洛温阿特金森
   📺 863.0万播放
   💬 4.0万弹幕
   👍 86.1万点赞
   🪙 22.2万投币
   ⭐ 26.9万收藏
```

## 配置

无需额外配置!使用B站官方API,无需安装Puppeteer。

依赖:Node.js内置的`https`模块。

## API说明

使用Bilibili官方排行榜API:
- `https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all`
- rid=0 表示全站
- type=all 表示综合排名

## 数据存储

抓取结果保存到:
1. `workspace/scripts/bilibili-hot.json` - JSON格式
2. `workspace/scripts/bilibili-hot.txt` - 文本格式

## 示例对话

```
用户: B站热搜
助手: 🎯 开始抓取Bilibili热搜...
      📊 Bilibili全站排行榜 (Top 50):
      1. ⚡对 对 子 战 神⚡
         👤 UP主: 洛温阿特金森
         📺 863.0万播放
         💬 4.0万弹幕
         👍 86.1万点赞
      ✅ 已保存到 bilibili-hot.json
```

## 优势

1. **速度快**:直接调用API,无需浏览器启动
2. **数据全**:获取完整的视频统计信息
3. **稳定**:使用官方API,不易被屏蔽
4. **轻量**:无需Puppeteer,节省资源

## 扩展功能

可添加以下功能:
1. 分区排行榜(游戏、动画、知识等)
2. 热搜词抓取
3. 历史数据对比
4. 数据可视化图表

### 分区API示例
- 动画区: `rid=1`
- 游戏区: `rid=4`
- 知识区: `rid=36`

## 维护

更新脚本位置:`skills/bilibili-hot/bilibili-hot.js`

如果API变更,需要更新:
1. API端点URL
2. 数据解析逻辑

_meta.json

{
  "ownerId": "kn78fqan8y12pjd0hw7gbw47cs8350rp",
  "slug": "bilibili-hot",
  "version": "1.0.0",
  "publishedAt": 1774503037924
}

skill-card.md

## Description:

Automatically fetches Bilibili sitewide ranking video data with detailed video statistics.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to retrieve the current Bilibili sitewide Top 50 ranking and save public video statistics for review or downstream analysis.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill contacts Bilibili's public API when invoked and can create or overwrite workspace/scripts/bilibili-hot.json and workspace/scripts/bilibili-hot.txt.

Mitigation: Run it only when external API access and these workspace file outputs are acceptable; review generated ranking files before relying on them.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/yangjinghua0127/skills/bilibili-hot)
- [Bilibili ranking API](https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all)

## Skill Output:

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

**Output Format:** [Console text plus saved JSON and plain-text files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Fetches up to 50 sitewide ranking entries and writes bilibili-hot.json and bilibili-hot.txt under workspace/scripts.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## 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.

Sponsored

Ads related to bilibili-hot and adjacent AI workflows.