LeoYeAI/agent-master-skills / skills/bilibili-cc-to-notion
bilibili-cc-to-notion
Unverified将B站视频字幕转换为带截图的Notion学习笔记。 当用户需要从B站视频提取字幕、分析内容并创建Notion学习笔记时,必须使用此技能。 支持BV号、完整URL输入,自动下载CC字幕,智能处理内容,生成带截图标记的结构化学习笔记。 适用于学习、研究、知识整理等场景。
| File | Kind | Size |
|---|---|---|
| CONFIGURATION.md | markdown | 3.3 KB |
| FINAL_SUMMARY.md | markdown | 7.9 KB |
| INTEGRATION_SUMMARY.md | markdown | 4.1 KB |
| README.md | markdown | 7.1 KB |
| SKILL.md | skill md | 22.3 KB |
| _meta.json | config | 536 B |
| scripts/bilibili_to_notion.py | script | 6.0 KB |
| scripts/bilibili_to_notion_workflow.py | script | 4.6 KB |
| scripts/create_notion_notes.py | script | 9.8 KB |
| scripts/create_notion_notes_with_images.py | script | 23.2 KB |
| scripts/download_bilibili_cc.py | script | 5.6 KB |
| scripts/process_subtitles.py | script | 6.8 KB |
| scripts/screenshot_tool.py | script | 4.7 KB |
| scripts/test_download.py | script | 1.4 KB |
| scripts/upload_file_to_notion.py | script | 3.4 KB |
scripts/test_download.py
View on GitHub#!/usr/bin/env python3
"""
测试字幕下载工具
"""
import subprocess
import json
import sys
def test_download():
"""测试字幕下载"""
print("测试BBDown字幕下载工具...")
print("-" * 50)
# 测试BBDown是否存在
try:
result = subprocess.run(
["/tmp/BBDown", "--help"], capture_output=True, text=True, timeout=5
)
if result.returncode == 0:
print("✅ BBDown 已安装")
else:
print("❌ BBDown 未正确安装")
return False
except Exception as e:
print(f"❌ 检查BBDown时出错: {e}")
return False
# 测试FFmpeg
try:
result = subprocess.run(
["ffmpeg", "-version"], capture_output=True, text=True, timeout=5
)
if result.returncode == 0:
print("✅ FFmpeg 已安装")
else:
print("❌ FFmpeg 未正确安装")
return False
except Exception as e:
print(f"❌ 检查FFmpeg时出错: {e}")
return False
print("-" * 50)
print("工具检查完成!")
print("\n现在可以使用下载脚本:")
print("python3 download_bilibili_cc.py --url <B站视频URL> --output <输出目录>")
print("\n示例:")
print(
"python3 download_bilibili_cc.py --url https://www.bilibili.com/video/BV1xx411c7mW --output /tmp/subtitles"
)
if __name__ == "__main__":
test_download()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |