Gaurav Ingalkar
Gaurav Ingalkar

Reputation: 1277

How do i get the list of all videos from youtube using gdata python library

I was referring to this doc. https://developers.google.com/youtube/1.0/developers_guide_python#SearchingVideos

this explains the various operations for youtube

but i am not getting how do i get all the videos from the youtube channel

i need to get all video list title,url and the thumbnail for that video

any help would be appreciated

thanks

Upvotes: 0

Views: 1947

Answers (2)

Gaurav Ingalkar
Gaurav Ingalkar

Reputation: 1277

got the answer from the doc itself, in case if anybody need it.

yt_service = gdata.youtube.service.YouTubeService()
yt_service.ssl = True

yt_service.developer_key = 'xxx'
yt_service.client_id = 'xxx'

yt_service.email = '[email protected]'
yt_service.password = 'xxx'
yt_service.source = 'youtube'
yt_service.ProgrammaticLogin()
videos = yt_service.GetYouTubeVideoFeed("https://gdata.youtube.com/feeds/api/users/default/uploads")

and then

 for video in videos.entry
     print video

Upvotes: 2

Related Questions