Closed eddieoz closed 1 year ago
Hi @eddieoz,
your CLI command is failing because you have to provide the ID of the video, not the URL. Also, your video's ID starts with -
so you'll have to escape that. Additionally, the video doesn't have an English transcript (which is the default if no language is provided), therefore, you'll have to provide the language you want to get the transcript for. Try this:
youtube_transcript_api "\--t7xdzBiQ4" --languages pt
The script you posted is failing because you have exceeded YouTube's rate limit, as the error message suggests. There unfortunately is not much you can do here, except for waiting until they remove the IP ban on you.
Thanks for your reply.
I will review it and run the bot under tor or another VPN to update my channel's transcripts db. Unfortunately seems Youtube listed my 3 IPs.
Best regards,
To Reproduce
Execute cli $ youtube_transcript_api https://www.youtube.com/watch?v=--t7xdzBiQ4
Which Python version are you using?
python 3.10.6, 3.9.0 and 3.8.8
Which version of youtube-transcript-api are you using?
0.5.0
What code / cli command are you executing?
$ youtube_transcript_api https://www.youtube.com/watch?v=--t7xdzBiQ4
Expected behavior
Show transcript
Actual behaviour
I tried on different machines and different IPs, but same error using the cli. This video was working before and I used it as a reference because I already downloaded the transcript of it.
When using a piece of code, it shows a different message but I believe it is related. I tried on different machines and also different IPs:
Error