gpt4 book ai didi

youtube - 在哪里可以找到 'youtube-v3-api-captions.json'发现文档?

转载 作者:行者123 更新时间:2023-12-04 17:18:18 32 4
gpt4 key购买 nike

我正在尝试使用YouTube API来获取视频字幕,但是示例不完整:https://developers.google.com/youtube/v3/code_samples/python#create_and_manage_youtube_video_caption_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文件。

在哪里可以找到?

最佳答案

似乎在这里:https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest

通过猜测https://developers.google.com/discovery/v1/reference/apis/getRest的“尝试”部分中的名称“youtube”和“v3”来找到

关于youtube - 在哪里可以找到 'youtube-v3-api-captions.json'发现文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29762529/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com