YouTube Transcript Extractor
YouTube Transcript Extractor
What You Get
- Terminal Output: Prints the transcript with
[HH:MM:SS]timestamps. - Local File: Writes
youtube_transcript_{video_id}.txtin the current working directory.- Includes the source video URL and the full transcript content.
Requirements
- Python 3.9+ (Recommended)
- Network environment that can access YouTube transcript APIs.
- Python Dependencies:
youtube-transcript-api
Quick Start
Step 1: (Optional) Create a Virtual Environment
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
Step 2: Install Dependencies
python -m pip install youtube-transcript-api
Step 3: Extract Transcript
Run from the repository root (recommended for the clearest path):
python skills/youtube-transcript-extractor/scripts/get_youtube_transcript.py "https://www.youtube.com/watch?v=IDSAMqip6ms"
- The transcript will be saved to
youtube_transcript_{video_id}.txtin the current working directory.
Step 4: Convert Transcript to Reader-Friendly Markdown
Output youtube_transcript_{video_id}.md. Note: Ensure the content is not altered or truncated.
More from qwenlm/qwen-code-examples
weixin-channel-setup
帮助用户快速配置和使用微信通道功能。当用户想要"配置微信"、"连接微信"、"设置微信机器人"、"weixin setup"、"wechat channel"时使用此技能。
84dashboard-builder
Build full-stack dashboard applications using React/Next.js + shadcn/ui + Tailwind CSS + Recharts + Express with customizable data sources. Use when creating data visualization dashboards, business intelligence interfaces, monitoring systems, KPI displays, analytics platforms, or any project requiring data visualization with modern UI components and dynamic effects.
72image-generation
Image generation skill based on Alibaba Cloud DashScope, supporting the creation of high-quality hand-drawn or standard images from user descriptions.
26auto-pr
Automated PR submission assistant, including code review, documentation generation, and PR creation
10oss-styles
|
3codegraph-qa
Use CodeScope to analyze any indexed codebase via its graph database (neug) and vector index (zvec). Supports Python, JavaScript/TypeScript, C, and Java (including Hadoop-scale repositories). Covers call graphs, dependency analysis, dead code detection, hotspots, module coupling, architectural layering, commit history, change attribution, semantic code search, impact analysis, full architecture reports, and bug root cause analysis from GitHub issues. Use this skill whenever the user asks about code structure, code dependencies, who calls what, why something changed, finding similar functions, generating architecture reports, understanding module boundaries, analyzing GitHub issues/bugs, finding bug root causes, understanding why a project has many bugs, tracing bugs to code, indexing Java projects, or any question that benefits from a code knowledge graph — even if they don't mention "CodeScope" by name. If a `.codegraph` or similar index directory exists in the workspace, this skill applies.
2