Skip to main content

justsubs

Download subtitles from YouTube as plain text

Based on gist by glasslion.

2024-03-23: Tested on Windows, may fail on Linux.

Install

pip install justsubs

Latest:

git clone https://github.com/epogrebnyak/justsubs.git
cd justsubs
pip install -e .

Usage

1. List subtitle options

from justsubs import Video

video = Video("KzWS7gJX5Z8")
video.list_subs()

From the output above you will need a language slug like en-uYU-mmqFLq8 as simple en might not work.

2. Download subtitles

subs = Video("KzWS7gJX5Z8").subtitles(language="en-uYU-mmqFLq8")
subs.download()

3. Print as plain text

print(subs.get_plain_text()[:500])

Metadata

Release files for justsubs 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for justsubs 0.1.1
File Size Uploaded Provenance Actions
justsubs-0.1.1.tar.gz 3.0 kB Without provenance Details for justsubs-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for justsubs 0.1.1
File Interpreter ABI Platform Actions
justsubs-0.1.1-py3-none-any.whl Python 3 none any Details for justsubs-0.1.1-py3-none-any.whl

Total release size: 6.7 kB

Release files / justsubs-0.1.1.tar.gz

Download URL justsubs-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72e2ab82c777041895267d819b3ccfb4b8154e29514636b194f87aa86996cdba
BLAKE2b-256 checksum
How to use checksums
28fc1a6f023fa0ac288920aedc75ea70e69cde847edffe8182ae78376dfd41f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Release files / justsubs-0.1.1-py3-none-any.whl

Download URL justsubs-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e50bf4b4b6b0055fdd9bab0aa74f3c643182046a7f3808201a38c64ca9ab24eb
BLAKE2b-256 checksum
How to use checksums
cc0d584cc9599ab3e7be71f8326502e17d760c7a6ea93945105e4f2b79ae03a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Security for justsubs 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page