Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用gdata python库从youtube获取所有视频的列表_Python_Api_Youtube - Fatal编程技术网

如何使用gdata python库从youtube获取所有视频的列表

如何使用gdata python库从youtube获取所有视频的列表,python,api,youtube,Python,Api,Youtube,我指的是这个医生。 这解释了youtube的各种操作 但我不知道如何从youtube频道获取所有视频 我需要得到所有的视频列表标题,网址和该视频的缩略图 任何帮助都将不胜感激 谢谢还有许多其他问题,可能会对您有所帮助。以下是其中一些项目的列表: 我希望这会对你有所帮助。还有很多其他问题可以帮助你。以下是其中一些项目的列表: 我希望这是有帮助的。从医生那里得到了答案,以防有人需要它 yt_service = gdata.youtube.service.YouTubeSer

我指的是这个医生。

这解释了youtube的各种操作

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

我需要得到所有的视频列表标题,网址和该视频的缩略图

任何帮助都将不胜感激


谢谢

还有许多其他问题,可能会对您有所帮助。以下是其中一些项目的列表:


我希望这会对你有所帮助。

还有很多其他问题可以帮助你。以下是其中一些项目的列表:


我希望这是有帮助的。

从医生那里得到了答案,以防有人需要它

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

从医生那里得到答案,以防有人需要

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

请点击左侧的勾号接受您的答案。这也有助于其他用户。请单击左侧的勾号接受您的答案。这也有助于其他用户。