playwright-youtube-shorts

Extract transcript text from YouTube Shorts pages via Playwright browser automation.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Moh-Tayyab/youtube-automation --skill playwright-youtube-shorts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-youtube-shorts
Source: https://github.com/Moh-Tayyab/youtube-automation/tree/main/.claude/skills/playwright-youtube-shorts
Command: npx skills add https://github.com/Moh-Tayyab/youtube-automation --skill playwright-youtube-shorts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve?

This skill enables automated retrieval of transcript text from YouTube Shorts videos by driving a browser with Playwright to fetch captions, making transcripts available for AI generation, content analysis, or pipeline automation.

Core Features & Use Cases

  • Automated transcript extraction from YouTube Shorts pages using Playwright automation.
  • Returns clean transcript and caption segments suitable for AI scripting, indexing, and SEO tasks.
  • Integrations: CLI for ad-hoc extractions and MCP server for Claude Code workflows to feed downstream AI pipelines.

Quick Start

Provide a YouTube Shorts URL to extract its transcript using the included CLI or MCP integration.

Frequently Asked Questions about playwright-youtube-shorts

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

FAQPage Schema
How do I extract transcripts from YouTube Shorts videos using browser automation?

You can extract YouTube Shorts transcripts by running the included CLI script or using the MCP server for Claude Code workflows. Provide a Shorts URL and Playwright will drive the browser to fetch captions and return clean transcript text.

Can I use Playwright to get captions from YouTube Shorts for an SEO workflow?

Yes, Playwright can retrieve YouTube Shorts captions for SEO workflows by automating the browser to extract transcript text. This provides clean, readable caption segments ideal for indexing, content analysis, and downstream AI generation pipelines.

Do I need Playwright installed to run the YouTube Shorts transcript extraction script?

Yes, Playwright is a required dependency for extracting YouTube Shorts transcripts. It functions as the browser automation driver needed to locate and fetch caption segments from the video pages during the CLI or MCP execution.

What is the best way to feed YouTube Shorts transcripts into an AI content pipeline?

The best way to feed YouTube Shorts transcripts into an AI content pipeline is via the skill's MCP server integration. It connects directly to Claude Code workflows, allowing the Playwright-extracted transcript text to flow into downstream AI generation tasks.

Does automated YouTube Shorts transcript extraction work with CLI execution?

Yes, automated YouTube Shorts transcript extraction works with CLI execution. You can provide a Shorts URL directly to the command line script to perform ad-hoc transcript retrievals without needing a full MCP server setup.