This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require a headless browser, like other selenium based solutions do!
YouTube Transcript/Subtitle API (including automatically generated subtitles and subtitle translations)
This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles, supports translating subtitles and it does not require a headless browser, like other selenium based solutions do!
Install
It is recommended to install this module by using pip:
pip install youtube-transcript-api
If you want to use it from source, you'll have to install the dependencies manually:
pip install -r requirements.txt
You can either integrate this module into an existing application, or just use it via an CLI.
from https://github.com/jdepoix/youtube-transcript-api
No comments:
Post a Comment