youtube-transcript-apiThis 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!
Weekly downloads over the last yearSeptemberOctoberNovemberDecember2026FebruaryMarchAprilMayJuneJulyAugustDate00.10.20.30.40.50.60.70.80.911.11.21.31.4 million downloads per week