Skip to main content

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.

PyPI Changelog License

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

llm_fragments_youtube_transcript-0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llm_fragments_youtube_transcript-0.1.tar.gz.

File metadata

File hashes

Hashes for llm_fragments_youtube_transcript-0.1.tar.gz
Algorithm Hash digest
SHA256 0186434ded259e99fdc0da9d0aab480a22c281da55798753949b2c2ccb883cec
MD5 9805d1d5b6c3dd6a06b2a840ac6470c6
BLAKE2b-256 87b0a8684de1d14adf8fde4915e40fdf934621a71dd348469b3344a140133c01

See more details on using hashes here.

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

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_fragments_youtube_transcript-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_youtube_transcript-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8010c111dd8b50050aa4be79f9fb5243d10f60831f69141bca58be2128c9a55d
MD5 93f7cab082a9e19ea16185fcfd013da9
BLAKE2b-256 bb75e18e82b154c22750f23db0b0fb44810fb162a4a6443f3d764bf3cd11407a

See more details on using hashes here.

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

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