en
Sep 2010
Mo Tu We Th Fr Sa Su
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

Last Played

» M – Crise [Lettres A Tanagra]
» M – Brigand [Lettres A Tanagra]
» M – Lettre A Tanagra [Lettres A Tanagra]
» M – Délivre
» M – Hold-Up
» M – Tout Sauf Toi
» M – Amssétou
» M – Semaine
» M – Destroy
» M – Ça sonne faux

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

by Philippe Normand on Sat Nov 3 13:51:01 2007 (Viewed: 4858 / 2 comments )
  |   RSS  |   RSS2  |   Atom  |   Source  |   Edit

#.   Jkx on Sat Nov 3 14:24:20 2007

Does this allow to bulk send some contents to Youtube ?

#.   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 :)

Comments not allowed anymore on this post