Fetch youtube transcripts and convert them into plaintext for llm consumption.
Project description
llm-fragments-youtube-transcript
A fragment loader for LLM that converts youtube transcripts into plaintext using youtube-transcript-api and yt-dlp.
yt-dlp is used for metadata (title, uploader, date, description) and youtube-transcript-api is used to fetch the transcript. yt-dlp at time of writing can only write subs to disk.
To do
- Chat mode
- Embedding generation
Installation
Install this plugin in the same environment as LLM:
llm install llm-fragments-youtube-transcript
Usage
Use -f 'yt:URL' to fetch and convert an online video transcript to plaintext.
Example:
llm -f 'yt:https://youtube.com/?v=' "Summarize this video."
The output includes:
- Title
- Uploader
- Date
- Description
- Transcription
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-fragments-youtube-transcript
uv sync
source .venv/bin/activate
Dependencies
- youtube-transcript-api: For extracting transcriptions
- yt-dlp: For extracting metadata from youtube videos
- llm: The LLM CLI tool this plugin extends
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_fragments_youtube_transcript-0.1.tar.gz.
File metadata
- Download URL: llm_fragments_youtube_transcript-0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0186434ded259e99fdc0da9d0aab480a22c281da55798753949b2c2ccb883cec
|
|
| MD5 |
9805d1d5b6c3dd6a06b2a840ac6470c6
|
|
| BLAKE2b-256 |
87b0a8684de1d14adf8fde4915e40fdf934621a71dd348469b3344a140133c01
|
Provenance
The following attestation bundles were made for llm_fragments_youtube_transcript-0.1.tar.gz:
Publisher:
publish.yml on jackbow/llm-fragments-youtube-transcript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_youtube_transcript-0.1.tar.gz -
Subject digest:
0186434ded259e99fdc0da9d0aab480a22c281da55798753949b2c2ccb883cec - Sigstore transparency entry: 264287557
- Sigstore integration time:
-
Permalink:
jackbow/llm-fragments-youtube-transcript@de66dcfe8b29ece13b95133fe7b6c52366f54cdb -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/jackbow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de66dcfe8b29ece13b95133fe7b6c52366f54cdb -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_fragments_youtube_transcript-0.1-py3-none-any.whl.
File metadata
- Download URL: llm_fragments_youtube_transcript-0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
8010c111dd8b50050aa4be79f9fb5243d10f60831f69141bca58be2128c9a55d
|
|
| MD5 |
93f7cab082a9e19ea16185fcfd013da9
|
|
| BLAKE2b-256 |
bb75e18e82b154c22750f23db0b0fb44810fb162a4a6443f3d764bf3cd11407a
|
Provenance
The following attestation bundles were made for llm_fragments_youtube_transcript-0.1-py3-none-any.whl:
Publisher:
publish.yml on jackbow/llm-fragments-youtube-transcript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_youtube_transcript-0.1-py3-none-any.whl -
Subject digest:
8010c111dd8b50050aa4be79f9fb5243d10f60831f69141bca58be2128c9a55d - Sigstore transparency entry: 264287566
- Sigstore integration time:
-
Permalink:
jackbow/llm-fragments-youtube-transcript@de66dcfe8b29ece13b95133fe7b6c52366f54cdb -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/jackbow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de66dcfe8b29ece13b95133fe7b6c52366f54cdb -
Trigger Event:
release
-
Statement type: