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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137fab72bb86bca842fbb218f9407a9bedf07165a5ebf06a72b045a6dd7073ed
|
|
| MD5 |
ac45c9ebf082e6d8afd84527c7ae032d
|
|
| BLAKE2b-256 |
4888663aa57369ce8b4f1bd3cb80473d081c467897f92ec5955c732d9dc736dd
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_yt_transcript-0.1.0a0.tar.gz -
Subject digest:
137fab72bb86bca842fbb218f9407a9bedf07165a5ebf06a72b045a6dd7073ed - Sigstore transparency entry: 197669756
- Sigstore integration time:
-
Permalink:
kj-9/llm-yt-transcript@4effa93d3b220e3d96ed9050e0dcba4663f37f1b -
Branch / Tag:
refs/tags/0.1.0a - Owner: https://github.com/kj-9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4effa93d3b220e3d96ed9050e0dcba4663f37f1b -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_yt_transcript-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: llm_yt_transcript-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1354e90d4637b40aacaeb2cf4a1d4fb709a411322889933ee618c7438f758ee5
|
|
| MD5 |
dd535406479661678935ebf77e20936f
|
|
| BLAKE2b-256 |
d4591ef8c7967c2104559eb9dcefad1bd24b6171d8fcdb25f2424adfa4d8b2c2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_yt_transcript-0.1.0a0-py3-none-any.whl -
Subject digest:
1354e90d4637b40aacaeb2cf4a1d4fb709a411322889933ee618c7438f758ee5 - Sigstore transparency entry: 197669761
- Sigstore integration time:
-
Permalink:
kj-9/llm-yt-transcript@4effa93d3b220e3d96ed9050e0dcba4663f37f1b -
Branch / Tag:
refs/tags/0.1.0a - Owner: https://github.com/kj-9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4effa93d3b220e3d96ed9050e0dcba4663f37f1b -
Trigger Event:
release
-
Statement type: