Skip to main content

llm-yt-transcript

PyPI Changelog Tests License

llm-yt-transcript is a LLM plugin for YouTube transcripts as fragments. It leverages yt-dlp for downloading subtitles.

Installation

llm install llm-yt-transcript

Usage

Download Subtitles

Use the download_subtitles function to download subtitles for a YouTube video:

llm -f ytt:{youtube_video_url} 'summarize the transcript'

by default, it will download the English subtitles. You can specify the language using the lang parameter before the :. For example, to download Spanish subtitles, use:

llm fragments show ytt:es:{youtube_video_url}

Controlling Logging

You can control the logging behavior by setting the LLM_YT_LOG environment variable. For example:

export LLM_YT_LOG=debug

Supported log levels are:

  • debug: Most verbose output, useful for debugging
  • info: General information messages
  • warning: Warning messages only (default)
  • error: Error messages only
  • critical: Critical error messages only

The default level is warning.

These log levels correspond directly to yt-dlp's internal logging system.

Development

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

cd llm-yt-transcript
uv sync --all-groups

Run the following command to run the tests:

uv run pytest

Metadata

Release files for llm-yt-transcript 0.1.0

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-yt-transcript 0.1.0
File Size Uploaded Provenance
llm_yt_transcript-0.1.0.tar.gz 6.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-yt-transcript 0.1.0
File Interpreter ABI Platform
llm_yt_transcript-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / llm_yt_transcript-0.1.0.tar.gz

Download URL llm_yt_transcript-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
adf85eebdd1fe33bdb945edadacff320fea3edad2b8ccb8aabaddab76d37617f
BLAKE2b-256 checksum
How to use checksums
f7c8f7378b2d8f722048d82b6bb60b2980a2ec889bf4e86479ca1ab1584e4c69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2025.

Transparency log

Release files / llm_yt_transcript-0.1.0-py3-none-any.whl

Download URL llm_yt_transcript-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5b71fd35424f1d4e7bf7cc90149aae401198568f48f4a4fb1f417cdc48a26bd
BLAKE2b-256 checksum
How to use checksums
63cdf27f82ecf47a004a3ebf3a3e33b03d59ef31b6b2854d1bdb409d81256ab9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2025.

Transparency log

Security for llm-yt-transcript 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llm_yt_transcript-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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