Closed LaserBen2023 closed 1 year ago
Hi @LaserBen2023, in the following line
video_id = "'" + youtube_url.split("v=")[1] + "'"
you are surrounding the video with '
. However, the id of the video you are looking for is -OAa9k0zCDg
and not '-OAa9k0zCDg'
, therefore, YouTube can't find it. Just replace that line with
video_id = youtube_url.split("v=")[1]
and it should work.
Hope this helps! I am closing this issue, as this is not an issue with the module.
thank you for your help
I am trying to use the YouTubeTranscriptApi.list_transcripts() function to retrieve the transcript for a YouTube video, but I am receiving the following error:
I have double-checked that subtitles are enabled for the video, and I am certain that a transcript should be available.
I am using version 0.5.0 of the youtube_transcript_api package. I have included the code I am using to reproduce the error below:
I would appreciate any help in resolving this issue. Thank you!