【发布时间】:2014-05-31 05:29:43
【问题描述】:
我指的是这个文档。 https://developers.google.com/youtube/1.0/developers_guide_python#SearchingVideos
这解释了 youtube 的各种操作
但我不知道如何从 youtube 频道获取所有视频
我需要获取该视频的所有视频列表标题、网址和缩略图
任何帮助将不胜感激
谢谢
【问题讨论】:
我指的是这个文档。 https://developers.google.com/youtube/1.0/developers_guide_python#SearchingVideos
这解释了 youtube 的各种操作
但我不知道如何从 youtube 频道获取所有视频
我需要获取该视频的所有视频列表标题、网址和缩略图
任何帮助将不胜感激
谢谢
【问题讨论】:
关于 SO 的许多其他问题可能会对您有所帮助。以下是其中的一些列表:
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
希望对你有帮助。
【讨论】:
从文档本身得到答案,以防万一有人需要。
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
【讨论】: