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!
MIT License
2.54k
stars
279
forks
source link
Added condition to initialize empty translation language list when translationLanugage key is missing #243
It looks like YouTube changed something where some caption jsons will be missing the translationLanguage key. This will initialize the translationLanguages as an empty list if that happens.
It looks like YouTube changed something where some caption jsons will be missing the
translationLanguage
key. This will initialize thetranslationLanguages
as an empty list if that happens.