--- id: ykdojo/safeclaw/yt-dlp version: "39ea76b5" license: MIT install: manual updated: 2026-07-24 --- # yt-dlp — yt-dlp lets you grab YouTube content—videos, audio tracks, or transcripts—in the format you need. Extract audio as MP3, pull full videos, or fetch subtitles and transcripts as VTT files. Publisher: ykdojo · Stars: 176 · Updated: 2026-07-24 Install (manual): `git clone https://github.com/ykdojo/safeclaw` ## SKILL.md # yt-dlp Download YouTube videos, audio, and subtitles/transcripts. ## Setup Check if yt-dlp is installed, and download it if not: ```bash if ! command -v yt-dlp &>/dev/null && [ ! -f ~/yt-dlp ]; then curl -sL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o ~/yt-dlp && chmod +x ~/yt-dlp fi ``` Then use `~/yt-dlp` (or just `yt-dlp` if installed globally). ## Examples Download subtitles/transcript: ```bash ~/yt-dlp --write-auto-sub --sub-lang en --skip-download -o "/tmp/%(id)s" ``` Download audio only: ```bash ~/yt-dlp -x --audio-format mp3 -o "/tmp/%(title)s.%(ext)s" ``` Download video: ```bash ~/yt-dlp -o "/tmp/%(title)s.%(ext)s" ``` Get video info (title, duration, description): ```bash ~/yt-dlp --print title --print duration_string --print description --no-download ``` ## Notes - Subtitles are saved as `.vtt` files - read them to get the transcript - Use `/tmp/` for downloads to avoid cluttering the working directory [View on SkillFed](https://skillfed.io/ykdojo/safeclaw/yt-dlp) · [View on GitHub](https://github.com/ykdojo/safeclaw)