Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Closed Captions

Downloads the closed captions(subtitles) from Youtube videos

Requirements

  • Currently requires Python >= 3.12

To Use

from ytcc.download import Download

video_id = 'jNQXAC9IVRw'
download = Download()
# Language is optional and default to "en"
# YouTube uses "en","fr" not "en-US", "fr-FR"
captions = download.get_captions(video_id, 'en')

Development

Run Tests

Note: Functional tests do download directly from Youtube

## All tests
pytest

## Or using unittest
python -m unittest discover

## Unit tests
python -m unittest discover test/unit

## Functional tests
python -m unittest discover test/functional

About

Python library for downloading closed captions(subtitles) from Youtube

Resources

Stars

61 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages