Youtube, GData and Python
Google has been providing a GData API to Youtube since a few months now, this is quite cool because it allows applications like Totem to access videos stored at Youtube.
So I wrote a little Python wrapper using python-gdata to ease access to that nice API, especially video thumbnails and direct FLV urls. It's called YoutubeClient, here's a little example:
cli = YouTubeClient() for video in cli.recently_featured(): thumb_url = cli.get_largest_thumbnail(video) flv_url = cli.get_flv_video_url(video.link[1].href) print video.title.text, thumb_url, flv_url
Right now, what you can do is:
- access standard feeds: recently_featured, most_viewed, top_rated
- browse Youtube tags
- access user-centric data: uploaded_videos, contacts, favorite_videos
This is really fun to use and would make a nice Elisa plugin... Any volunteer? :)
Next episode, accessing your Picasaweb data
#. phil on Sat Nov 3 14:43:10 2007
Not yet. But I won't be suprised when the API will support it. For instance it's already possible to push/update content hosted on Picasaweb via their API, which is kinda neat :)

#. Jkx on Sat Nov 3 14:24:20 2007
Does this allow to bulk send some contents to Youtube ?