【问题标题】:How do i get the list of all videos from youtube using gdata python library如何使用 gdata python 库从 youtube 获取所有视频的列表
【发布时间】:2014-05-31 05:29:43
【问题描述】:

我指的是这个文档。 https://developers.google.com/youtube/1.0/developers_guide_python#SearchingVideos

这解释了 youtube 的各种操作

但我不知道如何从 youtube 频道获取所有视频

我需要获取该视频的所有视频列表标题、网址和缩略图

任何帮助将不胜感激

谢谢

【问题讨论】:

    标签: python api youtube


    【解决方案1】:
    【解决方案2】:

    从文档本身得到答案,以防万一有人需要。

    yt_service = gdata.youtube.service.YouTubeService()
    yt_service.ssl = True
    
    yt_service.developer_key = 'xxx'
    yt_service.client_id = 'xxx'
    
    yt_service.email = 'xxx@dd.com'
    yt_service.password = 'xxx'
    yt_service.source = 'youtube'
    yt_service.ProgrammaticLogin()
    videos = yt_service.GetYouTubeVideoFeed("https://gdata.youtube.com/feeds/api/users/default/uploads")
    

    然后

     for video in videos.entry
         print video
    

    【讨论】:

    • 请点击左侧的勾号接受您的回答。这也有助于其他用户。
    猜你喜欢
    • 1970-01-01
    • 2011-10-16
    • 1970-01-01
    • 1970-01-01
    • 2012-11-01
    • 2013-03-18
    • 1970-01-01
    • 2015-08-31
    • 2012-10-01
    相关资源
    最近更新 更多