360 Secure SkillHub
360 安全技能中心

ytdlp-transcript — YouTube to Text via yt-dlp

通过 Node 脚本调用 yt-dlp 下载 YouTube 视频的自动或人工字幕,默认葡萄牙语并回退英语,支持多语言;抓取到的字幕交由代理做总结、翻译或要点提取。需本机安装 yt-dlp 与 Node.js 18+。

nerikko
nerikko
热度 84.62
最近更新 2026-05-11 17:32:28
分类:搜索依赖:代码执行 / 第三方 API应用场景:摘要总结 / 翻译 / 研究 / 笔记整理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add ytdlp-transcript
Metadata
name
youtube-transcript
description
Fetch and summarize transcripts from any YouTube video. Paste a URL and your agent reads the video for you — summarize, translate, extract insights.

youtube-transcript

Fetch and summarize transcripts from any YouTube video using yt-dlp.

Usage

Ask your agent:

  • "Get the transcript of [YouTube URL]"
  • "Summarize this video: [YouTube URL]"
  • "What is the main message of [YouTube URL]?"
  • "Translate and explain this video: [YouTube URL]"

How It Works

Uses yt-dlp to download auto-generated or manual captions from YouTube. Supports all languages — defaults to Portuguese (pt), falls back to English (en).

Requirements

  • yt-dlp installed: brew install yt-dlp
  • Node.js 18+

Script

node skills/youtube-transcript/transcript.js <youtube-url-or-id> [lang]

Example

node skills/youtube-transcript/transcript.js https://www.youtube.com/watch?v=LAdJsmTe8LM pt