这是一个重复的问题,如果你不是它的所有者,YouTube API是否禁止下载视频字幕?,获取YouTube字幕,如果您不是所有者,YouTube API是否禁止下载视频字幕?除非您是所有者或第三方贡献未启用,否则所有人基本上都说不可能通过YouTube API下载字幕.但是,我的问题是如何访问http://downsub.com/或http://www.lilsubs.com/这样的网站可以访问所有字幕?
换句话说,当我自己访问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版本?他们只是从视频本身或其他东西上刮下来的吗?
运行时sbt compile,标记为的依赖项test仍会得到解析,即使它们稍后不会包含在编译中。似乎这应该只在test:compile任务期间发生。有没有办法test在compile任务期间排除依赖项的解析和下载?
这是一个具有org.mockito#mockito-all依赖关系的示例。我已将其声明为仅测试:
"org.mockito" % "mockito-all" % "1.9.0" % "test"
Run Code Online (Sandbox Code Playgroud)
但是,当(从我的本地常春藤缓存中清除它并)运行时sbt compile,它会被不必要地下载:
$ sbt compile
[info] Loading global plugins from /Users/rbrainard/.sbt/plugins
[info] Loading project definition from /Users/rbrainard/Development/spitball/project
[info] Set current project to spitball (in build file:/Users/rbrainard/Development/spitball/)
[info] Updating {file:/Users/rbrainard/Development/spitball/}spitball...
[info] Resolving org.mockito#mockito-all;1.9.0 ...
[info] downloading http://repo1.maven.org/maven2/org/mockito/mockito-all/1.9.0/mockito-all-1.9.0.jar ...
[info] [SUCCESSFUL ] org.mockito#mockito-all;1.9.0!mockito-all.jar (2075ms)
[info] Done updating.
[success] Total time: 7 s, completed May 28, 2014 4:51:20 PM