This is a python API which allows you to get the transcripts/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!
No known vulnerabilities in the latest version
Based on latest version 1.2.4. If you're running an older version, check OSV for your specific version.
[](/packages/youtube-transcript-api)
<a href="/packages/youtube-transcript-api"><img src="/api/badges/youtube-transcript-api?period=month" alt="PyPI Stats"></a>