youtube-transcript

Extract clean text transcripts from YouTube video URLs using Node.js.

Updated Nov 4, 2025
One-click install
npx skills add https://github.com/chasemccoy/scripts --skill youtube-transcript-chasemccoy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: youtube-transcript
Source: https://github.com/chasemccoy/scripts/tree/main/skills/youtube-transcript
Command: npx skills add https://github.com/chasemccoy/scripts --skill youtube-transcript-chasemccoy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires youtube-transcript-plus, and includes scripts (resource) components.

What problem does it solve?

This skill enables users to obtain transcripts for YouTube videos, including captions that are auto-generated or manually provided, with options to retain timestamps or produce clean plain text for reading, analysis, or translation preparation.

Core Features & Use Cases

  • Fetches transcripts for YouTube videos using the youtube-transcript-plus library, supporting URLs in watch, short, and embed formats.
  • Outputs with or without timestamps, decodes HTML entities, and cleans lines for readable paragraphs, suitable for study notes, content creation, and research workflows.
  • Use Case: Convert lecture videos into study guides or compile video transcripts for accessibility and indexing.

Quick Start

Run the transcript script with a YouTube URL or video ID to print the transcript.

Frequently Asked Questions about youtube-transcript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract YouTube transcripts from a video URL?

To extract YouTube transcripts, run the transcript script with a watch, youtu.be, or embed URL. It fetches captions, decodes HTML entities, and outputs clean text suitable for reading or piping.

What is the best way to get YouTube captions with timestamps?

The best way to get YouTube captions with timestamps is using a Node.js script powered by the youtube-transcript-plus library. It supports outputting transcripts with or without timestamps based on your workflow needs.

Do I need Node.js to fetch transcripts from YouTube videos?

Yes, you need Node.js and the youtube-transcript-plus library to fetch transcripts from YouTube videos. The script runs in a Node environment to retrieve and decode caption data.

Can I use this to extract text from YouTube embed links?

Yes, you can extract text from YouTube embed links. The transcript extraction script fully supports watch?v, youtu.be, and embed URL formats to fetch and clean video transcripts.

Why does the extracted YouTube transcript contain HTML entities?

Extracted YouTube transcripts may contain HTML entities from the original caption data. The script decodes these HTML entities and cleans lines to produce readable paragraphs.