youtube-transcript
获取并总结 YouTube 视频文字记录。当要求从 YouTube 视频中总结、转录或提取内容时使用。通过住宅 IP 代理处理脚本获取,以绕过 YouTube 的云 IP 块。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~youtube-transcriptcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~youtube-transcript/file -o youtube-transcript.md## 概述(中文) 获取并总结 YouTube 视频文字记录。当要求从 YouTube 视频中总结、转录或提取内容时使用。通过住宅 IP 代理处理脚本获取,以绕过 YouTube 的云 IP 块。 ## 原文 # YouTube Transcript Fetch transcripts from YouTube videos and optionally summarize them. ## Quick Start ```bash python3 scripts/fetch_transcript.py <video_id_or_url> [languages] ``` **Examples:** ```bash python3 scripts/fetch_transcript.py dQw4w9WgXcQ python3 scripts/fetch_transcript.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" python3 scripts/fetch_transcript.py dQw4w9WgXcQ "fr,en,de" ``` **Output:** JSON with `video_id`, `title`, `author`, `full_text`, and timestamped `transcript` array. ## Workflow 1. Run `fetch_transcript.py` with video ID or URL 2. Script checks VPN, brings it up if needed 3. Returns JSON with full transcript text 4. Summarize the `full_text` field as needed ## Language Codes Default priority: `en, fr, de, es, it, pt, nl` Override with second argument: `python3 scripts/fetch_transcript.py VIDEO_ID "ja,ko,zh"` ## Setup & Configuration See [references/SETUP.md](references/SETUP.md) for: - Python dependencies installation - WireGuard VPN configuration (required for cloud VPS) - Troubleshooting common errors - Alternative proxy options