Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Command-line utility to download closed captions from YouTube as a SRT file.

Project description

youtube2srt 0.1

Released: 30-Apr-2016


A small command-line utility I had laying around for a good while that allows you to download closed captions from YouTube as a SRT file.


Install via pip:


$ pip install youtube2srt

Install from source:


$ git clone git://
$ cd youtube2srt
$ python install



usage: [-h] [-l l1 [,l2...]] [-o OUTPUT] VIDEO_URL_OR_FILENAME

Download closed captions of a YouTube video as a SRT file.

positional arguments:
VIDEO_URL_OR_FILENAME YouTube video url or filename

optional arguments:
-h, --help show this help message and exit
-l l1 [,l2...], --lang l1 [,l2...]
comma separated list of two letter language codes
(default: en)
-o OUTPUT, --output OUTPUT
write captions to FILE instead of

Project details

Download files

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

Files for youtube2srt, version 0.1b0
Filename, size File type Python version Upload date Hashes
Filename, size youtube2srt-0.1b0.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page