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 an API key nor a headless browser, like other selenium based solutions do!
With the current documentation, it's unclear what one needs to do if they want the captions for a single video which is not in English, nor what to do if they only want one language, with no fallback (albeit this is slightly clearer than the first case.
With the current documentation, it's unclear what one needs to do if they want the captions for a single video which is not in English, nor what to do if they only want one language, with no fallback (albeit this is slightly clearer than the first case.