Skip to main content

Download subtitles from YouTube

Project description

yousub

A python CLI tool to download subtitles from YouTube, .srt, .xml, .json format support.

install

python setup.py install

usage

# show all available subtitle languages, --show|-s
yousub --show https://www.youtube.com/watch?v=WBqnzn77MEE

# download a specified language, if -lang|-l not specified, download them all
yousub -lang en https://www.youtube.com/watch?v=WBqnzn77MEE

# -d|--directory to set output directory, -f|--filetype to set output format[xml, json, srt(default)]

# example: download json format Chinese subtitle from a url, and put it into 'subtitle' directory
yousub -l zh-CN -d subtitle -f json https://www.youtube.com/watch?v=WBqnzn77MEE

help

yousub --help

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

yousub-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

yousub-0.0.1-py3-none-any.whl (5.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