Retrieving a user profile image in YouTube using Python


import gdata.youtube
import gdata.youtube.service

yt_service = gdata.youtube.service.YouTubeService()
user_entry = yt_service.GetYouTubeUserEntry(username='GoogleDevelopers')
print user_entry.thumbnail.url

9 comments:

confy said...

Well, it would be nice to post links to python libs...

Jeff Fisher said...

Added some links to the right hand navigation. How's that look?

confy said...
This comment has been removed by the author.
confy said...

hey thanks....

This is also useful link: http://code.google.com/apis/youtube/1.0/developers_guide_python.html for newbies...

Thanks for the tips

kaolin fire said...

Is it possible at all to ask for profile images when doing video searches so that more than just the username can be posted next the the video? Or even some version of "batch" where multiple profile images can be queried at once?

Jeff Fisher said...

Not really an easy way of doing a batch request for an arbitrary set of user profiles.

I would just render the page and have JavaScript retrieve the thumbnails dynamically by querying the user entry e.g.:

http://picasaweb.google.com/data/entry/api/user/test.jfisher

You probably want JSON-in-script though e.g.:

http://picasaweb.google.com/data/entry/api/user/test.jfisher?alt=json-in-script&callback=handleProfileResponse

Would be pretty easy to knock out with jQuery, just remember to set the callback to "?" in that case.

kosovohp03 said...

healthtips
healthtips
healthtips
healthtips
healthtips




socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
check socks proxy
socks proxy
socks proxy






funnystory
funnystory
funnystory
funnystory
funnystory




funny pictures
funny pictures
funny pictures
funny pictures
funny pictures
funny pictures






Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh





cute animal
food news
internet
football news
bank news
marketing
science news
travel vietnamt
real estate vietnam
business news
music news
health news
software
seo news

Anonymous said...

Very interesting article, I really liked this article. What's in this website provides many pencerahaan and inspiring.
cara mudah dapat steam wallet
trik bermain 2 akun coc
trik cara dapat 1200 gems coc
trik dapat saldo google playstore
trik dapat diamond line lets get rich
tips bermain line lets get rich
cara mengisi saldo paypal gratis
dasar bermain game coc
trik cara dapat stiker line gratis
cara dapat stiker bbm gratis
Hopefully useful and successful greeting, thank you.... Very helpful to us all......
baca selengkapnya
read more
klik disini
kunjungi blog
kunjungi website
download sekarang juga
kunjungi link
lihat website
baca artikel
lihat artikel
Thank you to advance....

Printer Repair City said...

Amazing, learn how to resolve Canon Printer Error u052 and solve canon printer error 6a81 Also canon printer error 5200 and this is good Canon Printer Error Code 1007 find out canon printer error e04 as well as canon printer error code p22