bilibili-hot

v1.0.0

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

0· 232·0 current·0 all-time
byMr.Yang@yangjinghua0127

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for yangjinghua0127/bilibili-hot.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "bilibili-hot" (yangjinghua0127/bilibili-hot) from ClawHub.
Skill page: https://clawhub.ai/yangjinghua0127/bilibili-hot
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: node
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install bilibili-hot

ClawHub CLI

Package manager switcher

npx clawhub@latest install bilibili-hot
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md, and the included bilibili-hot.js all align: they call the documented Bilibili ranking API, extract Top 50 info, format it, and save outputs. Required binary is only node which is appropriate.
Instruction Scope
Runtime instructions are narrow and match the code: use the official API endpoint, produce JSON/text output, and save under workspace/scripts. The instructions do not request unrelated files, credentials, or external endpoints beyond Bilibili.
Install Mechanism
No install spec; the skill is instruction+script only and relies on Node.js builtin modules (https, fs). There are no downloads or package installs that would increase risk.
Credentials
The skill declares no required env vars and the code uses only an optional WORKSPACE env var (with a reasonable default). No secrets, tokens, or unrelated service credentials are requested.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide settings. It writes output files into a workspace subdirectory (creates workspace/scripts) which is expected behavior for a data-collection skill.
Assessment
This skill appears to do exactly what it says: call Bilibili's public ranking API and save Top 50 results to workspace/scripts/bilibili-hot.json and .txt. Things to consider before installing: it will make outbound HTTPS requests to api.bilibili.com and will create/write files under the agent workspace (default /home/openclaw/.openclaw/workspace). If you prefer a different location, set the WORKSPACE env var or inspect/modify the script. No credentials or third‑party downloads are required. If you want extra assurance, review the script (bilibili-hot.js) yourself or run it in a sandboxed environment.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📺 Clawdis
Binsnode
latestvk97535t6tx8497hqwrq3ds34gn83nxwm
232downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Skill: Bilibili热搜抓取

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

触发方式

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

能力

  • 使用Bilibili官方API获取全站排行榜
  • 抓取Top 50热门视频的完整信息
  • 提取视频标题、UP主、播放量、弹幕数等详细数据
  • 返回结构化视频数据(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. 数据解析逻辑

Comments

Loading comments...