这是Does YouTube API forbid to download video captions if you are not it's owner?,Get YouTube captions和Does YouTube API forbid to download video captions if you are not it's owner?的一个重复问题,它们基本上都说不可能,除非通过YouTube API下载字幕,除非您是所有者或第三方贡献未启用;然而,我的问题是如何网站像http://downsub.com/或http://www.lilsubs.com/有权访问所有字幕?某些网站如何下载YouTube标题?
换句话说,当我访问YouTube API将自己(甚至youtubepartner
和youtube.force-ssl
范围),我只能下载一些视频的字幕,但是当我尝试对这些其他与403: 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.
失败对我来说是相同的视频网站,它工作正常。我假设他们正在使用YouTube API来访问字幕,但他们使用了什么特别的酱料?一些特殊的伙伴关键?一个不同的API版本?他们只是从视频本身或其他什么东西?
任何链接,比如你是不是能够得到他们,但你可以通过提到的网站获取它们吗? –
@JanisS。以下是一个示例:https://youtu.be/0db1_qWZjRA,它解析为字幕标识zMTLb41gaOS5LWeeAi0ribdiUBImBdqb,然后失败,并显示403 – ryanbrainard
感谢您对非官方'timedtext'的评论。这可能适用于我的用例;然而,它似乎不支持没有签名的'kind = asr'(即自动翻译的字幕)。像downsub.com这样的其他网站也包括这些。他们如何做到这一点?以下是一个示例:https://www.youtube.com/watch?v = vx6NCUyg1NE只有英文和印度尼西亚文没有密钥。 ASR字幕也未在此处列出https://www.youtube.com/api/timedtext?v=vx6NCUyg1NE&lang=en&type=list。 – ryanbrainard