【发布时间】:2015-06-28 01:01:46
【问题描述】:
我正在尝试使用 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 文件完全不清楚。
在哪里可以找到?
【问题讨论】:
标签: youtube youtube-api youtube-data-api