yt-transcript-fetcher | YouTube Transcript Fetcher
A python package to fetch YouTube video transcripts.
Installation
Use the package manager pip to install yt-transcript-fetcher.
pip install yt-transcript-fetcher
Usage
Basic usage examples can be found in the examples directory.
Command Line Interface (CLI)
The package includes a basic command line interface for fetching transcripts. You can run the following command:
yt-transcript-fetcher <video_id> --list-languages
This will list all available languages for the specified video ID.
yt-transcript-fetcher <video_id> --download <language_code>
This will download the transcript for the specified video ID in the given language code and output it to standard output.
Python API
You can also use the package as a Python module. Here is a basic example:
from yt_transcript_fetcher import list_languages, get_transcript
video_id = "dQw4w9WgXcQ" # Replace with your video ID
languages = list_languages(video_id)
print("Available languages:", languages)
transcript = get_transcript(video_id, language_code="en")
print("Transcript:", transcript)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for yt-transcript-fetcher 1.2.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 | |
|---|---|---|---|
| yt_transcript_fetcher-1.2.1.tar.gz | 112.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yt_transcript_fetcher-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.3 kB
Release files / yt_transcript_fetcher-1.2.1.tar.gz
| Download URL | yt_transcript_fetcher-1.2.1.tar.gz |
|---|---|
| Size | 112.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27587c0fec831adf5e2e155277566a2919a94deb256b0c334d5c2346632a4523
|
|
BLAKE2b-256 checksum How to use checksums |
1b610a7d0d99a2414f19d63bf4bbe69dc406397816718b80f151309e3871fc1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 29, 2025.
Transparency logRelease files / yt_transcript_fetcher-1.2.1-py3-none-any.whl
| Download URL | yt_transcript_fetcher-1.2.1-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36666562539e3660f0c4b019ffa107a50b7d7e03effe95bae4f0de1959f5b629
|
|
BLAKE2b-256 checksum How to use checksums |
11898c70688bd49d8cea5d14e41a312e78f40417d2e2fc7890f09f161ca8bf65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 29, 2025.
Transparency log