Reputation: 1277
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
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
Reputation: 5315
There are many other questions on SO that may help you. Here is a list of some of them:
Retrieve all videos from youtube playlist using youtube v3 API
YouTube API Return List of All Videos from Specific Category
How do I get a YouTube video thumbnail from the YouTube API?
Unable to get fileDetails part when using YouTube videos API
How to extract the title of a youtube video using python
python: get all youtube video urls of a channel
I hope it was helpful.
Upvotes: 2