llm-tools-yt-transcript
Makes YouTube transcripts available to LLM
This is useful for generating a quick overview of a YouTube video before deciding to watch it
Note: this uses the youtube-transcript-api library with this caveat:
This code uses an undocumented part of the YouTube API, which is called by the YouTube web-client. So there is no guarantee that it won't stop working tomorrow, if they change how things work. I will however do my best to make things working again as soon as possible if that happens. So if it stops working, let me know!
Installation
Install this plugin in the same environment as LLM.
llm install llm-tools-yt-transcript
Usage
To use this with the LLM command-line tool:
# basic example
llm --tool yt_transcript "summarize this video: https://www.youtube.com/watch?v=kaMKInkV7Vs" --tools-debug
# a more sophisticated report
cat yt-digest-prompt-template.txt | llm --save yt-digest
llm -t yt-digest "https://www.youtube.com/watch?v=kaMKInkV7Vs" -T yt_transcript -x > example-report.html
With the LLM Python API:
import llm
from llm_tools_yt_transcript import yt_transcript
model = llm.get_model("gpt-4.1-mini")
result = model.chain(
"Example prompt goes here",
tools=[yt_transcript]
).text()
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-yt-transcript
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest
Metadata
Release files for llm-tools-yt-transcript 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llm_tools_yt_transcript-0.1.tar.gz | 7.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_tools_yt_transcript-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / llm_tools_yt_transcript-0.1.tar.gz
| Download URL | llm_tools_yt_transcript-0.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea06f649dd38fd018729fe00c128fb5c957ac5c03bd0cb5458dca5b3bb5ceb49
|
|
BLAKE2b-256 checksum How to use checksums |
4219cb740f6bfe2ef339c72cec2b74f294db00717e7c922218af0c89466c69bb
|
| 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 13, 2025.
Transparency logRelease files / llm_tools_yt_transcript-0.1-py3-none-any.whl
| Download URL | llm_tools_yt_transcript-0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5958be9675b03f759add2a9304dd178d52b703cfcb59f5643dc4734a88a8473
|
|
BLAKE2b-256 checksum How to use checksums |
b57cee74d9bc9aca1957154d4f19eb74867d964f18258b744adda463ade2b27c
|
| 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 13, 2025.
Transparency logSecurity for llm-tools-yt-transcript 0.1
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.
Attestation for llm_tools_yt_transcript-0.1.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 13, 2025.
Transparency logA 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.