Xpersona
B

B站 (bilibili) 热门视频监控

CLAWHUB · Unverified

生成B站热门视频日报并发送邮件。触发词:B站热门、bilibili日报、视频日报、热门视频 Skill: B站 (bilibili) 热门视频监控 Owner: jacobzwj Summary: 生成B站热门视频日报并发送邮件。触发词:B站热门、bilibili日报、视频日报、热门视频 Tags: latest:1.0.21 Version history: v1.0.21 | 2026-02-08T07:41:32.731Z | user 修复进度条 v1.0.20 | 2026-02-08T07:19:43.537Z | user — 新增 AI agent 执行指引:明确要求只转发脚本实际输出,不在等待期间发送额外消息,避免在 Telegram 等平台刷屏 — 更新功能描述:明确进度条仅在 25%/50%/75%/100% 关键节点输出 v1.0.19 | 2026-02-08T06:57:40.252Z | user 优化进度条输出:从每个视频都打印改为只在 25%、50%、75%、100% 关键节点输出,避

62
Rank
84
Safety
10k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 10.2K downloads reported by the source. Last updated 11/16/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 s175a2m3jsmxabg4nszbe62azx83kjwh:bilibili-hot-monitor
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  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-jacobzwj-bilibili-hot-monitor--monitor-2/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

151,796 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: bilibili-monitor
description: 生成B站热门视频日报并发送邮件。触发词:B站热门、bilibili日报、视频日报、热门视频
metadata: {"openclaw":{"emoji":"📺","requires":{"bins":["python3"]},"os":["darwin","linux","win32"]}}
---

# B站热门视频日报

## 🔒 安全说明

- 所有凭据仅存储在用户本地设备上,Skill 发布包中不包含任何凭据
- 配置文件 `bilibili-monitor.json` 已通过 `.gitignore` 排除,不会被意外上传或分享
- 网络传输使用 HTTPS 和 TLS/STARTTLS 加密
- 同时支持环境变量和命令行参数传递凭据,用户可自行选择

## 执行流程(分步询问)

### 检查配置文件

首先检查是否存在配置文件:
```bash
test -f {baseDir}/bilibili-monitor.json && echo "CONFIG_EXISTS" || echo "CONFIG_NOT_EXISTS"
```

- 如果输出 `CONFIG_EXISTS` → 跳到【直接执行】
- 如果输出 `CONFIG_NOT_EXISTS` → 进入【分步创建配置】

---

### 分步创建配置(首次使用)

**第1步:询问 B站 Cookies**
```
请提供 B站 Cookies:
(获取方法:登录B站首页 → F12 → Network选项卡 → 刷新页面 → 点击 www.bilibili.com 请求 → 找到 Request Headers 中的 Cookie 字段 → 复制整个值)
```
等待用户回复,保存为变量 `COOKIES`

**第2步:询问 AI 服务**
```
AI 功能说明:
- 需要 OpenRouter API Key
- 用于生成视频内容总结(基于字幕)和 AI 点评

是否启用 AI 功能?
1 = 是(推荐,需要 OpenRouter API Key)
2 = 否(将无法生成视频总结和点评)
请回复数字:
```
等待用户回复

**第3步:如果选了 1(启用 AI)**
```
请选择模型:
1 = Gemini(推荐,便宜快速)
2 = Claude(高质量)
3 = GPT
4 = DeepSeek(性价比)
```
等待用户回复,然后:
```
请提供 OpenRouter API Key:
获取地址:https://openrouter.ai/keys
```
保存为 `OPENROUTER_KEY` 和 `MODEL`

**第4步:询问发件邮箱**
```
请提供 Gmail 发件邮箱:
```
等待用户回复,保存为 `SMTP_EMAIL`

**第5步:询问应用密码**
```
请提供 Gmail 应用密码(16位):
获取地址:https://myaccount.google.com/apppasswords
```
保存为 `SMTP_PASSWORD`

**第6步:询问收件人**
```
请提供收件人邮箱(多个用逗号分隔):
```
保存为 `RECIPIENTS`

**第7步:生成配置文件**

根据收集的信息创建配置文件:
```bash
cat > {baseDir}/bilibili-monitor.json << 'EOF'
{
  "bilibili": {
    "cookies": "COOKIES值"
  },
  "ai": {
    "openrouter_key": "OPENROUTER_KEY值或空",
    "model": "MODEL值"
  },
  "email": {
    "smtp_email": "SMTP_EMAIL值",
    "smtp_password": "SMTP_PASSWORD值",
    "recipients": ["收件人1", "收件人2"]
  },
  "report": {"num_videos": 10}
}
EOF
```

---

### 确认并执行

向用户展示确认信息:
```
✅ 配置已就绪
🚀 即将开始执行:获取热门视频 → 提取字幕 → AI生成总结和点评 → 发送邮件
⏱️ 预计耗时:10-15 分钟,请耐心等待

是否开始执行?
```
等待用户确认后,执行以下命令。

⚠️ **AI Agent 注意事项**:
- 脚本执行需要 10-15 分钟,这是正常的,请设置超时 900 秒以上
- 脚本会在 25%、50%、75%、100% 时自动输出进度,**请只转发脚本实际输出**
- **不要**在等待期间发送"等待中..."、"继续等待..."等自定义消息,会导致刷屏
- 执行完成后再向用户汇报结果即可

**生成报告:**
```bash
python3 {baseDir}/generate_report.py --config {baseDir}/bilibili-monitor.json --output /tmp/bilibili_report.md
```

**发送邮件(邮件标题自动使用当前日期):**
```bash
python3 {baseDir}/send_email.py --config {baseDir}/bilibili-monitor.json --body-file /tmp/bilibili_report.md --html
```

---

## OpenRouter 模型映射

| 用户选择 | model 值 |
|---------|---------|
| 1 / Gemini | google/gemini-3-flash-preview |
| 2 / Claude | anthropic/claude-sonnet-4.5 |
| 3 / GPT | openai/gpt-5.2-chat |
| 4 / DeepSeek | deepseek/deepseek-chat-v3-0324 |

## 配置文件示例

见 `bilibili-monitor.example.json`

## ⏱️ 执行时间

| 阶段 | 预计时间 |
|------|---------|
| 获取视频列表 | 5-10 秒 |
| 字幕提取+AI总结(20个视频) | 2-3 分钟 |
| AI点评(20个视频) | 8-12 分钟 |
| 生成报告+发送邮件 | 10-20 秒 |
| **总计** | **10-15 分钟** |

⚠️ 完整执行需要 10-15 分钟,请确保命令超时设置足够长(建议 900 秒以上)。

## ⚠️ 重要提示

**AI 视频总结说明:**
- 视频总结基于字幕生成,需要视频有字幕(CC字幕或AI字幕)
- 部分视频可能没有字幕,这些视频将无法生成总结
- 推荐启用 AI 功能以获得完整的视频分析体验
- 需要

README.md

# B站热门视频监控 Skill

自动获取B站热门视频,使用字幕+LLM生成AI总结,生成包含数据分析的日报,支持邮件发送。

## 📦 版本历史

### v1.0.11 (2025-02-05)

**重大更新:改用字幕+LLM方案替代B站官方AI总结API**

- ✨ **新功能**
  - 使用视频字幕 + OpenRouter LLM 生成 AI 视频总结
  - 支持多种 LLM 模型:Claude、Gemini、GPT、DeepSeek
  - 实时进度条显示,用户可看到处理进度
  - 预估耗时提示

- 🔧 **优化**
  - 禁用所有模型的 thinking/reasoning 模式,避免输出被截断
  - 添加网络重试机制(最多3次),提高稳定性
  - 优化 JSON 解析,增加 fallback 提取逻辑
  - 改进 SKILL.md 中的 Cookie 获取说明(使用 Network 选项卡方法)

- 🐛 **修复**
  - 修复字幕获取兼容性问题
  - 修复 URL 链接被括号破坏的问题

### v1.0.10

- 初始版本,使用 B站官方 AI 总结 API

## ✨ 功能特点

- 📊 获取B站热门视频Top 10/20/30
- 🤖 字幕提取 + LLM 生成 AI 视频总结
- 📝 自动生成结构化Markdown报告
- 💡 支持 OpenRouter AI 智能点评(Claude/Gemini/GPT/DeepSeek)
- 📧 HTML邮件发送(支持多收件人)
- 🎨 精美的邮件排版(蓝色主题)
- 📈 关键节点进度显示(每阶段仅在 25%/50%/75%/100% 输出,避免刷屏)

## 🚀 快速开始

### 1. 安装依赖

```bash
pip install -r requirements.txt
```

### 2. 创建配置文件

复制示例配置:

```bash
cp bilibili-monitor.example.json bilibili-monitor.json
```

配置文件仅包含非敏感设置:

```json
{
  "ai": {
    "model": "google/gemini-3-flash-preview"
  },
  "email": {
    "recipients": ["recipient@example.com"]
  },
  "report": {
    "num_videos": 10
  }
}
```

### 3. 设置环境变量

敏感凭据通过环境变量传递,不写入配置文件:

| 环境变量 | 说明 | 是否必须 |
|---------|------|---------|
| `BILIBILI_COOKIES` | 完整的B站 Cookie 字符串 | 是 |
| `OPENROUTER_API_KEY` | OpenRouter API Key(用于 AI 功能) | 可选 |
| `SMTP_EMAIL` | Gmail 发件邮箱 | 是(发邮件时) |
| `SMTP_PASSWORD` | Gmail 应用密码(16位) | 是(发邮件时) |

### 4. 获取B站Cookies

1. 登录 [bilibili.com](https://www.bilibili.com)
2. 按 `F12` → `Network` 选项卡 → 刷新页面
3. 点击 `www.bilibili.com` 请求 → Request Headers → 复制 Cookie 字段

### 5. 生成报告并发送邮件

```bash
# 设置环境变量
export BILIBILI_COOKIES="你的B站cookies"
export OPENROUTER_API_KEY="你的OpenRouter Key"
export SMTP_EMAIL="your-email@gmail.com"
export SMTP_PASSWORD="xxxx xxxx xxxx xxxx"

# 生成报告
python generate_report.py --config bilibili-monitor.json --output report.md

# 发送邮件
python send_email.py --config bilibili-monitor.json --body-file report.md --html
```

也支持通过命令行参数传递凭据:

```bash
python generate_report.py --cookies "你的cookies" --openrouter-key "你的key" --config bilibili-monitor.json --output report.md
```

## 📋 报告内容

生成的报告包含:

```
📋 本期热门视频(摘要表格)
├── 排名、标题、播放量、亮点、链接

🌟 本期亮点
├── 播放量冠军
├── 点赞数冠军
├── 硬币数冠军
└── 分享数冠军

📹 详细报告(每个视频)
├── 基本信息(UP主、时长、发布时间)
├── 📊 数据统计
├── 📝 视频简介
├── 🤖 AI视频总结 + 内容大纲(LLM生成)
├── 💡 AI点评
├── 📈 运营爆款分析
└── 🔗 视频链接
```

## 🤖 作为AI Skill使用

本项目可作为 OpenClaw 等 AI Agent 的 Skill 使用。

触发词:
- "B站热门"
- "bilibili日报"
- "视频日报"
- "热门视频"

## 📁 文件结构

```
bilibili-monitor/
├── SKILL.md                    # AI Skill 说明文件
├── README.md                   # 本文件
├── requirements.txt            # Python 依赖
├── generate_report.py          # 报告生成脚本
├── send_email.py               # 邮件发送脚本
├── bilibili_api.py             # B站 API 工具集
├── bilibili_subtitle.py        # 字幕提取模块
├── bilibili-monitor.example.json  # 配置文件示例(无敏感信息)
└── example_report.md           # 报告示例
```

## 🔒 安全说明

- 所有凭据仅存储在用户本地设备上,Skill 发布包中不包含任何凭据
- 配置文件 `bilibili-monitor.json` 已通过 `.gitignore` 排除,不会被意外上传或分享
- 网络传输使用 HTTPS 和 TLS/STARTTLS 加

_meta.json

{
  "ownerId": "kn75197v8gca4x1y9fzt680s4d80ca84",
  "slug": "bilibili-hot-monitor",
  "version": "1.0.21",
  "publishedAt": 1770536492731
}

example_report.md

# B站热门视频日报

**生成时间**:2026-01-31 12:37:07

---

## 📋 本期热门视频(2026-01-31)

| 排名 | 视频标题 | 播放量 | 亮点 | 链接 |
|:---:|---------|:------:|------|:----:|
| 1 | 和今汐小卡一起在桂林画中游 【2026鸣潮新春会】 | 26.7万 | 游戏相关 | [打开视频](https://www.bilibili.com/video/BV1Ua6cBDEaF) |
| 2 | 「万灵和鸣」山海幻想群像手书【2026鸣潮新春会】 | 25.4万 | 🔥硬币最高 | [打开视频](https://www.bilibili.com/video/BV1Cy6cBkEoS) |
| 3 | Buzzy - 鲶鱼Mixtape「Official Audio」 | 10.3万 | 长视频深度内容 | [打开视频](https://www.bilibili.com/video/BV1RP6iBoEXq) |
| 4 | 新三国,但是一口气唱完所有逆天台词 | 56.2万 | 🔥播放量最高 | [打开视频](https://www.bilibili.com/video/BV1sp6wB2EEc) |
| 5 | 我是全网最丑免费加速器,很抱歉以这样的方式认识大家 | 17.1万 | 热门内容 | [打开视频](https://www.bilibili.com/video/BV1tG6FB1EUe) |
| 6 | 30岁的千万负翁,躺在上海出租屋的地板上思考人生。【UP主年终总结】 | 27.5万 | 长视频深度内容 | [打开视频](https://www.bilibili.com/video/BV1AG6qBGEsA) |
| 7 | 40年前的隐藏细节!30000字极致拉片《闪灵》视听解析,一口气看过瘾! | 7.4万 | 长视频深度内容 | [打开视频](https://www.bilibili.com/video/BV1Qs6YB1E4t) |
| 8 | 老外摄影师拍中国乡村,这不是你想象中的扶贫故事 | 11.0万 | 热门内容 | [打开视频](https://www.bilibili.com/video/BV1KP6qB2Evz) |
| 9 | “后羿为什么不射工作日” | 36.4万 | 🔥点赞最高 | [打开视频](https://www.bilibili.com/video/BV1pczfBNEZb) |
| 10 | 腾讯为什么一直不愿意放弃元梦之星? | 36.6万 | 热门内容 | [打开视频](https://www.bilibili.com/video/BV1Xp6cBoE2d) |

---

## 🌟 本期亮点

1. **播放量冠军**:《新三国,但是一口气唱完所有逆天台词》56.2万
2. **点赞数冠军**:《“后羿为什么不射工作日”》3.3万
3. **硬币数冠军**:《「万灵和鸣」山海幻想群像手书【2026鸣潮新春会】》1.6万
4. **分享数冠军**:《新三国,但是一口气唱完所有逆天台词》4,736

---

## 1. 和今汐小卡一起在桂林画中游 【2026鸣潮新春会】

- **UP主**:姜生花_
- **时长**:3分20秒 | **发布时间**:2026-01-30 19:50

**📊 数据统计**:
> 播放 26.7万 | 点赞 2.4万 | 收藏 7803 | 硬币 9427 | 弹幕 747 | 评论 627 | 分享 1,651

**📝 视频简介**:
> 终于跳了!特别喜欢!桂林的山水太美啦~ 喜欢这期视频请投给我一个免费的硬币吧! 节目名:画中游 卡提希娅:姜生花 今汐:dudu冯玉憬 今汐舞者:龙傲娇 摄像:黑椒 统筹:血盟文化 妆造:叶咩 后勤:执着 舞美参考:刘宇 原创编舞:夫仔 BGM:《画中游》 王秋实

**🤖 B站官方AI总结**:
> 今汐小卡在桂林如诗如画的春景中,乘小舟轻摇,穿越烟雨朦胧、柳影飘香的街巷,感受夕阳微凉与万物生机,以清丽嗓音吟唱春意,将满目春色融入诗行,展现烟雨中邂逅的海棠之美与不负人间的悠然心境,意境唯美流转。
>
> **内容大纲**:
> • **桂林烟雨春色悠游画卷**
>   - 描绘桂林烟雨朦胧春景与婉转动听的旋律
>   - 以春色漫巷展现街巷风拂柳香的诗意旅程
> • **桂林烟雨春光摇曳画卷**
>   - 开篇以吟唱描绘桂林烟雨春景与灵动画面
>   - 反复咏叹红妆美景与漫步西墙的诗意意境

**💡 Claude点评**:
> 鸣潮新春会高质量舞蹈视频,桂林山水实景拍摄。9427硬币说明观众高度认可,游戏+国风+实景结合非常吸引眼球。

**📈 运营爆款分析**:
> **爆款因素**:蹭官方活动热度+桂林实景+游戏IP。**数据亮点**:硬币接近点赞40%。**成功关键**:专业团队+官方背书。

🔗 [点击观看视频](https://www.bilibili.com/video/BV1Ua6cBDEaF)

---

## 2. 「万灵和鸣」山海幻想群像手书【2026鸣潮新春会】

- **UP主**:可靠de伏特加
- **时长**:2分12秒 | **发布时间**:2026-01-30 20:30

**📊 数据统计**:
> 播放 25.4万 | 点赞 2.5万 | 收藏 9621 | 硬币 1.6万 | 弹幕 1,208 | 评论 1,051 | 分享 2,444

**📝 视频简介**:
> 又是一种全新的频率,索拉里斯还有这样的可能性? BGM:《浮光》—周深 企划:可靠de伏特加 执行监督:小发 统筹/分镜:观晴 监督:观晴、雨晴、了川 原画:雨晴、了川、侑荼、和香澄、八川、伊芙、柳川秋、青衫、橡皮、小修、阿欲、言衍、lemon、柠檬、喵白、阿步、池池、淡无、清风、茶茶 视频监督:乐宸 后期:小马、梨子、风心、Akki、强仔、YN、四一、昇 L2D/SPINE:叶随、huangEL、小维 封面:小马

**🤖 B站官方AI总结**:
> 2026鸣潮新春会《万灵和鸣》手书,通过诗意歌词描绘短暂相遇与深长思念,以“指尖拨像蝴蝶”“眼眸装满世界”等意象,交织离别、誓言与时光流转,传递沧海桑田中的永恒陪伴,强调在有限人生中与所爱共度流年的动人情感。
>
> **内容大纲**:
> • **沧海桑田共度流年如梦**
>   - 指尖拨动蝴蝶意象,演绎短暂相遇与无声岁月之梦
>   - 眼眸映照世界,承诺细数流年与沧海桑田共度
> • **万灵和鸣新春庆典启幕**
>   - 视频以「万灵和鸣」主题呈现山海幻想群像故事

**💡 Claude点评**:
> 本期硬币冠军(1.6万)!20位原画师群像手书,周深《浮光》作BGM。分享数2444说明粉丝愿意主动传播。

**📈 运营爆款分析**:
> **爆款因素**:官方活动+20人团队+周深BGM三重加持。**数据亮点**:硬币点赞比64%。**成功关键**

skill-card.md

## Description:

Generates and emails daily Bilibili popular-video reports with subtitle-based AI summaries and content-performance analysis.

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

## Publisher:

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

### License/Terms of Use:

MIT License

## Use Case:

External users and content operators use this skill to monitor Bilibili trending videos, generate a structured daily Markdown report, optionally enrich it with OpenRouter-based analysis, and email the result to configured recipients.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may store reusable Bilibili cookies, an OpenRouter API key, and SMTP credentials in plaintext configuration.

Mitigation: Prefer environment variables or a secret manager, keep generated configuration local, and avoid passing secrets on the command line.

Risk: SMTP credentials allow the skill to send email to configured recipients.

Mitigation: Use an app-specific email password and review recipient addresses before running the send step.

Risk: Video titles, metadata, subtitles, summaries, and generated reports may be shared with OpenRouter or email recipients.

Mitigation: Disable AI enrichment when content should not be sent to OpenRouter and verify report contents before emailing.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jacobzwj/skills/bilibili-hot-monitor)
- [ClawHub publisher profile](https://clawhub.ai/user/jacobzwj)
- [Bilibili API WBI signature reference](https://socialsisteryi.github.io/bilibili-API-collect/docs/misc/sign/wbi.html)
- [Bilibili video summary API reference](https://socialsisteryi.github.io/bilibili-API-collect/docs/video/summary.html)
- [OpenRouter API keys](https://openrouter.ai/keys)
- [Google app passwords](https://myaccount.google.com/apppasswords)

## Skill Output:

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

**Output Format:** [Markdown report, optional HTML email, and command-line setup guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create a local JSON configuration file, write a report file, call Bilibili and OpenRouter over HTTPS, and send email through SMTP.]

## Skill Version(s):

1.0.21 (source: ClawHub 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.

Sponsored

Ads related to B站 (bilibili) 热门视频监控 and adjacent AI workflows.