Youtube-transcript-api is a Python API which allows you to retrieve 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!
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-youtube-transcript-api listed in the above command, you can pick from the names under the Packages section.
www/py-youtube-transcript-api: Add new port
Youtube-transcript-api is a python API which allows you to retrieve
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!
https://github.com/jdepoix/youtube-transcript-api