使用 Youtube v3 API 下载字幕 [英] Downloading captions using Youtube v3 API
问题描述
在尝试使用 OAuth 2.0 授权下载视频(非我所有)的字幕时,我收到 403 Forbidden 错误,其中指出与请求关联的权限不足以下载字幕轨道.请求可能未正确授权,或者视频订单可能未为此字幕启用第三方贡献."在进一步研究中,我发现其他人也遇到了与此相同的问题,除非视频是从他们自己的帐户上传的,否则无法下载字幕.
While attempting to download captions for a video (not owned by me) using OAuth 2.0 authorization, I am receiving a 403 Forbidden error which states "The permissions associated with the request are not sufficient to download the caption track. The request might not be properly authorized, or the video order might not have enabled third-party contributions for this caption." On further research, I have found other people also faced the same issue as this, and have not been able to download captions unless the video was uploaded from their own account.
是否仍然无法从视频中下载字幕轨道?像 keepsubs(dot)com 这样的网站究竟是如何做到这一点的?
Is there still no possible way of downloading a caption track from a video? How exactly do sites like keepsubs(dot)com, manage to do this then?
推荐答案
字幕:下载文档
授权
此请求需要至少获得以下授权之一范围(阅读有关身份验证和授权的更多信息).
This request requires authorization with at least one of the following scopes (read more about authentication and authorization).
范围 https://www.googleapis.com/auth/youtube.force-sslhttps://www.googleapis.com/auth/youtubepartner
视频的所有者必须使用 Oauth2 和这些范围之一对您的应用程序进行身份验证.
The owner of the video will have to authenticate your application using Oauth2 with one of those scopes.
这篇关于使用 Youtube v3 API 下载字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!