Python 如何使用Google API获取youtube-v3-discoverydocument.json?

Python 如何使用Google API获取youtube-v3-discoverydocument.json?,python,json,youtube-api,Python,Json,Youtube Api,我正在尝试用python使用Google API,因此我从网站上获取了一个示例代码,在某个时候,这些行出现了: # 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-discoverydocument.json", "r") as

我正在尝试用python使用Google API,因此我从网站上获取了一个示例代码,在某个时候,这些行出现了:

 # 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-discoverydocument.json", "r") as f:
    doc = f.read()
    return build_from_document(doc,http=credentials.authorize(httplib2.Http()))
你知道我是如何找到这个youtube-v3-discoverydocument.json的吗?我可以从开发者页面下载,但我真的找不到


谢谢

您可以在这里找到内容:

此外,您可以使用来检索任何其他Google API的类似数据。例如,要检索您正在查找的数据,请将参数
api
version
设置为“youtube”和“v3”,然后单击“执行”