About youtube-live-chat
youtube-live-chat is a skill for downloading chat messages from YouTube videos with yt-dlp. It supports live streams and past streams with chat replay, and can save output with optional timestamps.
Key features
- 01Download YouTube live chat
- 02Accept URLs or video IDs
- 03Include optional timestamps
- 04Write output to a chosen file
- 05Include Super chats and memberships
Use cases
- 01Save chat from a live stream
- 02Retrieve replay chat from a past stream
- 03Export messages with timestamps
- 04Store chat in a specified text file
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ pamelafox/ presentation-skills --skill youtube-live-chatAfter installing, type/youtube-live-chatin Claude Code to confirm it loaded.
Bundled filesget_live_chat.py
Details
From the project READMEYouTube Live Chat Downloader
Download live chat messages from YouTube videos using yt-dlp.
Usage
Run the script with a YouTube URL or video ID:
uv run .agents/skills/youtube-live-chat/get_live_chat.py "VIDEO_URL_OR_ID"
With timestamps:
uv run .agents/skills/youtube-live-chat/get_live_chat.py "VIDEO_URL_OR_ID" --timestamps
Output to a specific file:
uv run .agents/skills/youtube-live-chat/get_live_chat.py "VIDEO_URL_OR_ID" --output chat.txt
Supported URL Formats
https://www.youtube.com/watch?v=VIDEO_IDhttps://www.youtube.com/live/VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/embed/VIDEO_ID- Raw video ID (11 characters)
Output Format
- Without timestamps (default):
[author]: messageformat - With timestamps:
[HH:MM:SS] [author]: messageformat
Output
- If you were asked to save the chat to a specific file, save it to the requested file.
- If no output file was specified, use the YouTube video ID with a
-livechat.txtsuffix.
Notes
- Works with live streams currently in progress
- Works with past streams that have chat replay enabled
- Some videos may not have live chat available
- Super chats and memberships are included with their message text
Comments
Markdown supported