rjw57 / yt

Experiments with the YouTube API
MIT License
83 stars 25 forks source link

Youtube API update killed yt #45

Open picketta opened 9 years ago

picketta commented 9 years ago

(pi-)yt stopped working sometime in the last couple of weeks, in keeping with Google's schedule for the API update. The application only returns a single link to a video explaining the API update.

Explanation on the API update here: https://support.google.com/youtube/answer/6098135?hl=en

blerko commented 9 years ago

I found this too and I've got a pull-request in place to allow the use of api v3, you can see my code here: https://github.com/blerko/yt/tree/apiv3 it is possible that if you take the src/yt/__init__.py from there that it might work for you. You would need to move the current __init__.py and __init__.pyc somewhere safe.

Unfortunately Google, in their wisdom, have mandated that searching for videos via the api now requires you to identify yourself, so to make my amendments to the code work you need your own developer key, see here for instructions: https://developers.google.com/youtube/registering_an_application, once you have a key that goes at the top of the code in the DEVELOPER_KEY define. I created a "Key for browser applications".

mhjb commented 7 years ago

In which file does one stick the developer key?

blerko commented 7 years ago

The developer key goes in the init.py file. If you look at https://github.com/blerko/yt/tree/apiv3 you will see in the src dir that file with some notes.