Extract transcripts from Udemy videos using Claude Code + Playwright MCP.
- Extract transcript from single Udemy video
- Extract full course (all lectures) with batch processing
- Auto-save to local knowledge base
- Works with any Udemy account (personal, business, etc.)
Before installing this skill, make sure you have:
- Claude Code installed
- Bun runtime (for save script)
- Access to Udemy (logged in account)
# Clone or download this folder
cd learn-udemy-skill
# Run install script
chmod +x install.sh
./install.sh-
Copy skill folder
# Copy to your Claude skills directory cp -r learn-udemy ~/.claude/skills/
-
Add Playwright MCP to your project
Add this to your project's
.mcp.json:{ "mcpServers": { "playwright": { "type": "stdio", "command": "npx", "args": ["-y", "@playwright/mcp@latest"] } } } -
Create output directory (optional)
mkdir -p ψ/memory/learnings
Or set
PSI_ROOTenvironment variable to your preferred location. -
Restart Claude Code to load the new skill
/learn-udemy https://www.udemy.com/course/my-course/learn/lecture/12345/learn-udemy "My Custom Title" https://www.udemy.com/course/my-course/learn/lecture/12345For extracting entire courses, ask Claude directly:
ช่วย extract transcript ทั้ง course จาก https://www.udemy.com/course/my-course/
Claude will use Playwright MCP to:
- Open browser (you'll need to login if not already)
- Navigate through each lecture
- Extract transcripts
- Save to local knowledge base
┌─────────────────────────────────────────────────────────────┐
│ /learn-udemy <url> │
│ │ │
│ ▼ │
│ ┌─────────────┐ │
│ │ Playwright │ ──► Opens browser ──► Navigates to URL │
│ │ MCP │ │
│ └─────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────┐ │
│ │ Claude │ ──► Extracts transcript from page │
│ │ Code │ │
│ └─────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────┐ │
│ │ save- │ ──► Saves to ψ/memory/learnings/ │
│ │ learning.ts │ YYYY-MM-DD_title.md │
│ └─────────────┘ │
└─────────────────────────────────────────────────────────────┘
Transcripts are saved as Markdown files:
---
title: "Video Title"
source: Udemy
course: "Course Name"
instructor: "Instructor Name"
url: "https://..."
created: 2024-01-25
tags: [udemy, topic, ...]
---
# Video Title
**Course**: Course Name
**Instructor**: Instructor Name
## Transcript
[Full transcript text...]
---
*Extracted via /learn-udemy, 2024-01-25*learn-udemy-skill/
├── README.md # This file
├── install.sh # Auto-install script
├── learn-udemy/ # Skill folder (copy to ~/.claude/skills/)
│ ├── SKILL.md # Skill definition
│ └── scripts/
│ └── save-learning.ts # Save transcript script
└── examples/
└── mcp-config.json # Example Playwright MCP config
Make sure .mcp.json is in your project root with Playwright configured.
When browser opens, login to Udemy manually. Claude will wait for you.
Some videos don't have transcripts. Claude will notify you if extraction fails.
Make sure you have access to the course on Udemy.
MIT License - Feel free to use, modify, and share!
Created by sonthaya with Claude Code (Dongky)
Version: 1.0.0 Created: 2026-01-25 Requires: Claude Code, Playwright MCP, Bun