gdata.youtube.service python api:如何将其绑定到gdata.youtube.data

gdata.youtube.service python api:如何将其绑定到gdata.youtube.data,python,api,youtube-api,Python,Api,Youtube Api,我正在尝试在使用youtube.service对象登录后,如何从youtube.data对象获取Title属性。dblist.dbselectlist输出要与uri连接的VideoID。感谢您的帮助 这是我到目前为止的代码 import gdata.youtube import gdata.youtube.service import gdata.youtube.data import dblist # Create a client class which will make HTTP re

我正在尝试在使用youtube.service对象登录后,如何从youtube.data对象获取Title属性。dblist.dbselectlist输出要与uri连接的VideoID。感谢您的帮助

这是我到目前为止的代码

import gdata.youtube
import gdata.youtube.service
import gdata.youtube.data
import dblist

# Create a client class which will make HTTP requests with Google Docs server.
client = gdata.youtube.service.YouTubeService()
# Authenticate using your Google Docs email address and password.
client.email = 'email@outlook.com'
client.password = 'pwdvalue'
client.source = 'my-list-application'
client.developer_key = 'xxxxx'
client.client_id = 'my-list-application'
client.ProgrammaticLogin()

#select all videoids in the rotatevids table
listrotate = dblist.dbselectrotatelist()
for row in listrotate:
        videoid= row["videoid"]
        uri = 'https://gdata.youtube.com/feeds/api/videos/%s?v=2' % (videoid)
        print uri
        video_feed = client.GetYouTubeVideoFeed(uri)
当我dirgdata.youtube.data.VideoEntry 它看起来像是我正在寻找的标题和文本值

提前谢谢

video_entry = client.GetYouTubeVideoEntry(video_id=VIDEO_ID)
title = video_entry.title.text
顺便说一句,我认为ProgrammaticLogin是不推荐的,你不需要登录,它只需要开发者密钥