我正在尝试使用YouTube API获取视频标题,但示例不完整:tracks
具体来说,它有以下注释+代码:
# Trusted testers can download this discovery document from the developers page
# and it should be in the same directory with the code.
with open("youtube-v3-api-captions.json", "r") as f:
doc = f.read()
return build_from_document(doc, http=credentials.authorize(httplib2.Http()))但是还不清楚在哪里可以找到youtube-v3-api-captions.json文件。
哪里能找到它?
发布于 2015-04-21 04:20:30
发布于 2015-04-21 04:40:25
有一个"meta“发现API,它列出了API,并包含指向它们各自的发现文档的链接:https://developers.google.com/apis-explorer/#search/discovery/discovery/v1/discovery.apis.list。
https://stackoverflow.com/questions/29762529
复制相似问题