360 Secure SkillHub
360 安全技能中心

youtube-transcript

该 Skill 通过 yt-dlp 从 YouTube 视频提取去重后的纯文字字幕,支持指定字幕语言代码,可将结果写入文件或输出到标准输出;使用时由用户提供 YouTube 链接并运行随附的 Python 脚本,需要环境已安装 yt-dlp 与 Python 3.10 以上版本。

分类:效率
yuvadm
yuvadm
热度 13.01
最近更新 2026-08-04 00:35:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yuvadm/youtube-transcript
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
youtube-transcript
description
Fetch and save YouTube video transcripts as clean plain text. Use when the user provides a YouTube URL or wants to extract a transcript from a podcast, interview, or talk.

YouTube Transcript

Extracts clean, deduplicated plain-text transcripts from YouTube videos using yt-dlp.

Dependencies

  • yt-dlp (must be installed and on PATH)
  • Python 3.10+

Usage

Fetch a transcript and save it to a file:

python3 .pi/skills/youtube-transcript/yt_transcript.py "YOUTUBE_URL" -o transcript.txt

Options:

  • -l LANG — subtitle language code (default: en)
  • -o FILE — output file path (default: stdout)

Workflow

When the user gives a YouTube URL:

  1. Fetch transcript — Run the script, optionally with -o <path> to save to a file.
  2. Review — Read through the transcript and summarise the key points if the user asks.