360 Secure SkillHub
360 安全技能中心

Bilibili & YouTube Watcher

该 Skill 用 Python 脚本调用 yt-dlp,从 YouTube 或 Bilibili 视频链接自动识别平台并下载 CC/自动生成字幕,输出字幕文本,供后续总结、问答或信息提取使用;无字幕时脚本报错,不提供语音转写。

donnycui
donnycui
热度 98.16
最近更新 2026-05-11 17:26:14
分类:效率依赖:代码执行 / 第三方 API应用场景:摘要总结 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bilibili-youtube-watcher
Metadata
name
video-watcher
description
Fetch and read transcripts from YouTube and Bilibili videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
author
adapted from youtube-watcher
version
1.1.0
triggers
["watch video","summarize video","video transcript","youtube summary","bilibili summary","analyze video"]
metadata
{"clawdbot":{"emoji":"📺","requires":{"bins":["yt-dlp"]},"install":[{"id":"brew","kind":"brew","formula":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (brew)"},{"id":"pip","kind":"pip","package":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (pip)"}]}}

Video Watcher

Fetch transcripts from YouTube and Bilibili videos to enable summarization, QA, and content extraction.

Supported Platforms

  • ✅ YouTube (youtube.com, youtu.be)
  • ✅ Bilibili (bilibili.com, b23.tv)

Usage

Get Transcript (Auto-detect Platform)

python3 {baseDir}/scripts/get_transcript.py "VIDEO_URL"

Specify Language

python3 {baseDir}/scripts/get_transcript.py "VIDEO_URL" --lang zh-CN

Examples

YouTube Video

python3 {baseDir}/scripts/get_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

Bilibili Video

python3 {baseDir}/scripts/get_transcript.py "https://www.bilibili.com/video/BV1xx411c7mD"

With Custom Language

# Get English subtitles for a Bilibili video
python3 {baseDir}/scripts/get_transcript.py "https://bilibili.com/video/..." --lang en

# Get Chinese subtitles for a YouTube video
python3 {baseDir}/scripts/get_transcript.py "https://youtube.com/watch?v=..." --lang zh-CN

Default Languages

Platform Default Language
YouTube en (English)
Bilibili zh-CN (Chinese)

Common Language Codes

  • en - English
  • zh-CN - Simplified Chinese (简体中文)
  • zh-TW - Traditional Chinese (繁體中文)
  • ja - Japanese
  • ko - Korean
  • es - Spanish
  • fr - French
  • de - German

Notes

  • Requires yt-dlp to be installed and available in PATH
  • Works with videos that have closed captions (CC) or auto-generated subtitles
  • Automatically detects platform from URL
  • If no subtitles available, the script will fail with an error message
  • yt-dlp natively supports both YouTube and Bilibili