Skip to main content

Download subtitles from YouTube as plain text.

Project description

justsubs

Download subtitles from YouTube as plain text

Based on gist by glasslion.

Install (not a package yet):

git clone https://github.com/epogrebnyak/justsubs.git
cd justsubs
pip install requirements.txt

List subtitle options:

from justsubs import Video

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

Get subtitles as plain text:

from justsubs import Video

subs = Video("KzWS7gJX5Z8").subtitles(language="en-uYU-mmqFLq8")
subs.download()
print(subs.get_text_blocks()[:10])
print(subs.get_plain_text()[:550])

Project details


Download files

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

Source Distribution

justsubs-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

justsubs-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page