Skip to main content

llm-youtube

LLM plugin for extracting content from YouTube videos.

This plugin is inspired by Simon Willison's llm-hacker-news and his excellent llm tool.

Installation

llm install llm-youtube

Usage

Passing the video ID

example:

llm -f yt:zv72WMmVkPw 'Please summarize this video'

Passing the Video URL

example:

llm -f yt:https://www.youtube.com/watch\?v\=zv72WMmVkPw 'Please summarize this video'

We can also use a system prompt to improve the result

example:

llm -f yt:sCr_gb8rdEI --system "You are an expert at analyzing YouTube videos. Extract the key points only, ignore filler content." "What is this video about?"

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-youtube
python -m venv venv
source venv/bin/activate

Now install the dependencies:

pip install -e .

Metadata

Release files for llm-youtube 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-youtube 0.1
File Size Uploaded
llm_youtube-0.1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-youtube 0.1
File Interpreter ABI Platform
llm_youtube-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / llm_youtube-0.1.tar.gz

Download URL llm_youtube-0.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c4c7ef585bee252572b9d2979fd2fd6a61dc46d869696a457defc9ebd08ee6
BLAKE2b-256 checksum
How to use checksums
2394c52b16ae296fcdf4ee161c5eda8b2e9af65b5c4ebe0b5c3ae36b5607a3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / llm_youtube-0.1-py3-none-any.whl

Download URL llm_youtube-0.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63faf6250352744a5f6c4565b9991571c1be6a74afb6a5fe6811de0cb3144107
BLAKE2b-256 checksum
How to use checksums
cced43affd32b6dd5ea1fd8f730b5a8c4e1714551c6b512cb2657c584a66a0d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page