import gdata.youtube
import gdata.youtube.service
client = gdata.youtube.service.YouTubeService()
uri = 'https://gdata.youtube.com/feeds/api/standardfeeds/most_popular?time=all_time&max-results=40'
feed = client.GetYouTubeVideoFeed(uri)
for entry in feed.entry:
print "%s %s | %s" % (entry.title.text, entry.rating.average, entry.id.text)
playlist_entry_uri = new_public_playlistentry.id.text
playlist_entry_id = new_public_playlistentry.id.text.split('/')[8][2:]
entry.id.text.split('/')[6]
https://gdata.youtube.com/feeds/api/videos?q=&v=2&duration=medium&orderby=viewCount&max-results=50&start-index=100
curl 'http://gdata.youtube.com/feeds/api/standardfeeds/most_recent?max-results=50&safeSearch=none' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'GData-Version: 2' -H 'Host: gdata.youtube.com' -H 'Referer: http://gdata.youtube.com/demo/index.html' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0' -o atom.xml