youtube-transcript-api icon indicating copy to clipboard operation
youtube-transcript-api copied to clipboard

Script is broken

Open deniswsrosa opened this issue 6 years ago • 7 comments

Hi, I just tried to reinstall everything and seems like there is something wrong with the latest version: File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/youtube_transcript_api/__init__.py", line 1, in <module> from ._api import YouTubeTranscriptApi File "/Library/Python/2.7/site-packages/youtube_transcript_api/_api.py", line 4, in <module> CookieLoadError = (FileNotFoundError, cookiejar.LoadError)

I can't use it via line command or on my python script

deniswsrosa avatar May 07 '20 19:05 deniswsrosa

I'll look into this later today

danielcliu avatar May 07 '20 19:05 danielcliu

@deniswsrosa I just tried this and I can not replicate it. Could you please provide the exact python and youtube-transcript-api versions you are using?

jdepoix avatar May 08 '20 09:05 jdepoix

I was unable to replicate also

danielcliu avatar May 08 '20 17:05 danielcliu

@deniswsrosa were you able to fix this? Can you provide more information? Otherwise I will close this issue.

jdepoix avatar May 13 '20 11:05 jdepoix

I'm sorry, actually I just noticed that the problem with my code was something else (I tried to run it on my terminal but it was running python 2,7). The actual error is:

Could not retrieve a transcript for the video https://www.youtube.com/watch?v=https://www.youtube.com/watch?v=CZ3wIuvmHeM! This is most likely caused by:

The video is no longer available

when I run youtube_transcript_api https://www.youtube.com/watch?v=CZ3wIuvmHeM , but the video is available. Is there anything missing?

deniswsrosa avatar May 13 '20 15:05 deniswsrosa

you have to run youtube_transcript_api CZ3wIuvmHeM

jdepoix avatar May 13 '20 15:05 jdepoix

I'm an idiot

deniswsrosa avatar May 13 '20 16:05 deniswsrosa