mcpField
Y
youtube-live-chat

youtube-live-chat

github.com/pamelafoxData & databases128108 installsUpdated 8w ago
Repository

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

  1. 01Download YouTube live chat
  2. 02Accept URLs or video IDs
  3. 03Include optional timestamps
  4. 04Write output to a chosen file
  5. 05Include Super chats and memberships

Use cases

  1. 01Save chat from a live stream
  2. 02Retrieve replay chat from a past stream
  3. 03Export messages with timestamps
  4. 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-chat

After installing, type/youtube-live-chatin Claude Code to confirm it loaded.

Bundled filesget_live_chat.py

Details

From the project README

YouTube 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_ID
  • https://www.youtube.com/live/VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/embed/VIDEO_ID
  • Raw video ID (11 characters)

Output Format

  • Without timestamps (default): [author]: message format
  • With timestamps: [HH:MM:SS] [author]: message format

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.txt suffix.

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