The Artima Developer Community
Sponsored Link

Python Buzz Forum
Youtube, GData and Python

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Philippe Normand

Posts: 78
Nickname: philn
Registered: Aug, 2005

Philippe Normand is a developer
Youtube, GData and Python Posted: Nov 3, 2007 7:06 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Philippe Normand.
Original Post: Youtube, GData and Python
Feed Title: Base-Art / Python
Feed URL: http://base-art.net/Sections/5/rss.xml
Feed Description: Phil's blog
Latest Python Buzz Posts
Latest Python Buzz Posts by Philippe Normand
Latest Posts From Base-Art / Python

Advertisement

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

Read: Youtube, GData and Python

Topic: Coverage Tools Previous Topic   Next Topic Topic: svnmerge

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use