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.87k
stars
326
forks
source link
get_transcript() not working. But works if using fetch(). #145
HI @pohnson, if you're using get_transcripts the param video_ids has to be a list of video ids, not a string. So either supply a list (video_ids=['zeRJRBNRrpA']) or use get_transcript instead.
OS: Mac Monterey 12.2.1 Python Version: 3.8 Package Version: 0.4.3 Demonstrated Video: https://www.youtube.com/watch?v=zeRJRBNRrpA
Summary I got an error if I use get_transcript() directly. But if I were to use list_transcript(), find_transcript(), and fetch(), it works just fine.
get_transcript Way
Error Screen
Fetch Way
Success
Please let me know if you need additional information.