Skip to content

LeoYeAI/agent-master-skills / skills/bilibili-cc-to-notion

bilibili-cc-to-notion

Unverified

将B站视频字幕转换为带截图的Notion学习笔记。 当用户需要从B站视频提取字幕、分析内容并创建Notion学习笔记时,必须使用此技能。 支持BV号、完整URL输入,自动下载CC字幕,智能处理内容,生成带截图标记的结构化学习笔记。 适用于学习、研究、知识整理等场景。

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()
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall