Skip to content
/ yousub Public

A python CLI tool to download subtitles from YouTube

License

Notifications You must be signed in to change notification settings

sinb/yousub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yousub

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

install

# install from pypi repo
pip install yousub

or clone this repo then execute

# install from source code
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

About

A python CLI tool to download subtitles from YouTube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages