en
Mar 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 31

Last Played

» Bandes Originales de Films – Guilty
» Bandes Originales de Films – L'autre valse d'Amelie
» Bandes Originales de Films – La noyee
» Bandes Originales de Films – Comptine d'un autre ete [L'apres midi]
» Bandes Originales de Films – La valse d'Amelie
» Bandes Originales de Films – Les jours tristes (instrumental)
» Bandes Originales de Films – J'y suis jamais allé
» Ane Brun – Song No. 6 (feat. Ron Sexsmith)
» Ane Brun – Common Bird (Feat. Wendy Mcneil)
» Ane Brun – Love and Misery (Feat. Tobias Fröberg)

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: 4168 / 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