Bilibili Search

v0.1.0

B站(哔哩哔哩)数据查询工具。搜索视频、获取视频详情和数据、查看UP主信息、热门排行榜、热搜榜。无需 API Key,即装即用。Use when you need to search Bilibili videos, get video stats, check UP主 info, browse popular...

1· 988·3 current·3 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

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

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Bilibili Search" (songrat/bilibili-search) from ClawHub.
Skill page: https://clawhub.ai/songrat/bilibili-search
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python3
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-search

ClawHub CLI

Package manager switcher

npx clawhub@latest install bilibili-search
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Bilibili search and data queries) match the included script and SKILL.md. The only declared runtime requirement is python3, which is appropriate for a Python script. There are no unrelated binaries, env vars, or config paths requested.
Instruction Scope
SKILL.md instructs the agent to run the included Python script with a JSON argument. The script's runtime behavior is limited to making HTTPS requests to Bilibili endpoints and formatting returned JSON. It does not read local files, access other system state, or transmit data to non-Bilibili endpoints.
Install Mechanism
There is no install spec; the skill is instruction + a bundled Python script. No external archives or third-party packages are downloaded or extracted during install. Risk from installation is low — execution risk comes from running the included script (normal for an instruction-based skill).
Credentials
The skill requires no environment variables or credentials. The script uses a small, hard-coded Cookie and standard User-Agent headers to avoid Bilibili anti-bot responses, which is proportionate to its purpose. No secrets are requested or referenced.
Persistence & Privilege
The skill does not request persistent 'always' inclusion, does not modify other skills or system configuration, and does not store credentials. Autonomous invocation is allowed by default (normal), but that alone is not risky here given the limited scope.
Assessment
This skill appears to do exactly what it claims: run a local Python script that queries public Bilibili APIs. Before installing or running: (1) be aware the script performs outbound network requests to bilibili domains — if you need to restrict network access, run it in a sandbox. (2) Monitor usage to avoid rate limits or triggering Bilibili anti-abuse. (3) Because the repository includes a runnable script, inspect the file yourself (already included) and only run it in an environment you trust. No credentials or secrets are requested by the skill.

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

Runtime requirements

📺 Clawdis
Binspython3
latestvk973fn1m15x1x43ferage4e5p5832rbe
988downloads
1stars
1versions
Updated 1mo ago
v0.1.0
MIT-0

Bilibili(B站)数据查询

查询B站视频、UP主、热榜数据。无需 API Key,即装即用,大陆直连可用。

用法

python3 skills/bilibili/scripts/bilibili.py '<JSON>'

功能一览

1. 搜索视频 search

python3 scripts/bilibili.py '{"action":"search","query":"AI大模型","count":10,"order":"totalrank"}'

参数:

参数类型必填默认说明
actionstr-"search"
querystr-搜索关键词
pageint1页码
countint10每页数量(最多20)
orderstrtotalrank排序:totalrank综合 / click播放量 / pubdate最新 / dm弹幕 / stow收藏

返回格式:

{
  "total": 1000,
  "page": 1,
  "results": [
    {
      "bvid": "BV1xx411c7mD",
      "url": "https://www.bilibili.com/video/BV1xx411c7mD",
      "title": "视频标题",
      "author": "UP主名称",
      "mid": 123456,
      "play": 100000,
      "danmaku": 500,
      "favorites": 2000,
      "like": 3000,
      "pubdate": 1700000000,
      "duration": "10:30",
      "desc": "视频简介前100字..."
    }
  ]
}

展示时必须包含: bvidurltitleauthorplay(播放量)


2. 视频详情 video

python3 scripts/bilibili.py '{"action":"video","bvid":"BV1GJ411x7h7"}'

参数:

参数类型必填说明
actionstr"video"
bvidstr视频BV号,如 BV1GJ411x7h7

返回格式:

{
  "bvid": "BV1GJ411x7h7",
  "url": "https://www.bilibili.com/video/BV1GJ411x7h7",
  "title": "视频标题",
  "desc": "视频简介",
  "owner": {
    "name": "UP主名称",
    "mid": 123456
  },
  "pubdate": 1700000000,
  "duration": 213,
  "tags": ["标签1", "标签2"],
  "stat": {
    "view": 97000000,
    "danmaku": 135000,
    "reply": 184000,
    "favorite": 1393000,
    "coin": 1152000,
    "share": 434000,
    "like": 2653000
  }
}

展示时必须包含: bvidurltitleowner.name、全部 stat 数据


3. UP主信息 user

python3 scripts/bilibili.py '{"action":"user","mid":123456}'

参数:

参数类型必填说明
actionstr"user"
midintUP主UID

返回格式:

{
  "mid": 123456,
  "name": "UP主昵称",
  "followers": 1382687,
  "following": 414,
  "videos": 42,
  "url": "https://space.bilibili.com/123456"
}

展示时必须包含: midurlnamefollowers(粉丝数)、videos(投稿数)


4. 热门视频 popular

python3 scripts/bilibili.py '{"action":"popular","count":10}'

参数:

参数类型必填默认说明
actionstr-"popular"
countint10获取数量(最多100)

返回格式:

{
  "results": [
    {
      "bvid": "BV1xx411c7mD",
      "url": "https://www.bilibili.com/video/BV1xx411c7mD",
      "title": "视频标题",
      "owner": "UP主名称",
      "view": 5000000,
      "like": 500000,
      "danmaku": 10000
    }
  ]
}

展示时必须包含: bvidurltitleownerview(播放量)、like(点赞数)


5. 热搜榜 hot_search

python3 scripts/bilibili.py '{"action":"hot_search"}'

无需参数,返回实时热搜 Top20。

返回格式:

{
  "hot_search": [
    {
      "rank": 1,
      "keyword": "热搜关键词",
      "search_url": "https://search.bilibili.com/all?keyword=...",
      "hot_id": 241546
    }
  ]
}

展示时必须包含: rankkeywordsearch_url,格式如下:

#1 热搜关键词
   搜索链接: https://search.bilibili.com/all?keyword=...

完整示例

# 搜索最新AI视频(按发布时间)
python3 scripts/bilibili.py '{"action":"search","query":"Claude AI","order":"pubdate","count":5}'

# 查询视频详情
python3 scripts/bilibili.py '{"action":"video","bvid":"BV1GJ411x7h7"}'

# 查看UP主信息
python3 scripts/bilibili.py '{"action":"user","mid":2}'

# 今日热门视频 Top10
python3 scripts/bilibili.py '{"action":"popular","count":10}'

# 实时热搜榜
python3 scripts/bilibili.py '{"action":"hot_search"}'

说明

  • 无需 API Key,基于B站公开接口
  • 大陆直连可用,无需代理,无需登录
  • 接口为公开接口,稳定性较好,但可能随B站更新变化
  • 请合理控制调用频率,避免触发风控

Comments

Loading comments...