gptme-youtube
YouTube transcript extraction and summarization plugin for gptme.
Moved from gptme core (tools/youtube.py) to gptme-contrib as a plugin.
Features
- get_transcript: Fetch transcript for a YouTube video by video ID
- summarize_transcript: Summarize a transcript using the LLM
Installation
pip install "gptme-youtube[youtube]"
Or add to your gptme plugin paths in gptme.toml:
[plugins]
paths = ["path/to/gptme-contrib/plugins/gptme-youtube"]
Dependencies
youtube_transcript_api>=0.6.1(optional extra — included withpip install "gptme-youtube[youtube]")
Usage
Once installed, the youtube tool is automatically available in gptme sessions.
Ask gptme to fetch a transcript:
fetch the transcript for https://www.youtube.com/watch?v=dQw4w9WgXcQ
Or call the functions directly in a Python block:
transcript = get_transcript("dQw4w9WgXcQ")
summary = summarize_transcript(transcript)
print(summary)
You can also use a youtube code block with a video ID:
dQw4w9WgXcQ