Skip to main content

A LLM plugin for YouTube transcripts as fragments

Project description

llm-yt-transcript

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

Installation

llm install git+https://github.com/kj-9/llm-yt-transcript.git

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}

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_yt_transcript-0.1.0a0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_yt_transcript-0.1.0a0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_yt_transcript-0.1.0a0.tar.gz.

File metadata

  • Download URL: llm_yt_transcript-0.1.0a0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_yt_transcript-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 137fab72bb86bca842fbb218f9407a9bedf07165a5ebf06a72b045a6dd7073ed
MD5 ac45c9ebf082e6d8afd84527c7ae032d
BLAKE2b-256 4888663aa57369ce8b4f1bd3cb80473d081c467897f92ec5955c732d9dc736dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_yt_transcript-0.1.0a0.tar.gz:

Publisher: publish.yml on kj-9/llm-yt-transcript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_yt_transcript-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_yt_transcript-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1354e90d4637b40aacaeb2cf4a1d4fb709a411322889933ee618c7438f758ee5
MD5 dd535406479661678935ebf77e20936f
BLAKE2b-256 d4591ef8c7967c2104559eb9dcefad1bd24b6171d8fcdb25f2424adfa4d8b2c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_yt_transcript-0.1.0a0-py3-none-any.whl:

Publisher: publish.yml on kj-9/llm-yt-transcript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page