为什么我无法获取这些类型的链接?

Why am I not able to wget these types of links?

https://r4---sn-a5m7lnek.googlevideo.com/videoplayback?requiressl=yes&id=bfcd54f32577fad7&itag=22&source=webdrive&app=texmex&ip=2605:e000:608a:400:f4cd:ff6:3353:dcc&ipbits=8&expire=1464424582&sparams=expire,id,ip,ipbits,itag,mm,mn,ms,mv,nh,pl,requiressl,source&signature=1701A7336E5CB650393D0AE2FC4B24388F033594.7795C4BFED9863E57BBADCA3ACD8FF33D79A8018&key=cms1&pl=32&cms_redirect=yes&mm=31&mn=sn-a5m7lnek&ms=au&mt=1464414847&mv=m&nh=IgpwcjAzLmxheDAyKgkxMjcuMC4wLjE

我想知道是什么阻止我获取此文件。当我看的时候,它是页面上的视频对吗...?

当我尝试 wget(或 youtube-dl)时,它给我这个错误: 错误 403:禁止访问。

但是为什么呢?

Why am I not able to wget these types of links?

因为它们不是 Youtube-dl 可以使用的有效 Youtube links... 它需要一个浏览器 link (页面)但是这里你给它一个文件下载link。

如果你的 link 不包括 youtube.com/watch?v= 你将永远无法 wget link.

Also, sorry for asking, but what did you mean by "passing through youtube-dl"? Did you mean youtube-dl r4---sn-a5m7lnek.googlevideo.com/…; ?

Youtube link 始终显示为 https://www.youtube.com/watch?v=VIDEO_ID

例如 VIDEO_ID 类似于 Dm_xLDvCrNI.
传递给 Youtube-dl 的完整 link 是: https://www.youtube.com/watch?v=Dm_xLDvCrNI

It was not a Youtube direct file link...

如果您的 link 开始 https://r4--- 那么它实际上是 直接 link 到 Youtube 服务器 上的文件。这就是 Youtube-dl 当你给它一个 Youtube 视频 link 然后允许你保存文件时它自己得到的。
Youtube 服务器像示例 https://r2--- 一样开始并向上移动到 https://r9---

例如video:MP4直接文件link如下所示(在浏览器中播放或保存文件):
https://r2---sn-5uaeznzk.googlevideo.com/videoplayback?ipbits=0&ratebypass=yes&key=yt6&upn=oGVhc2fiEPA&fexp=9405824,9416126,9416891,9421734,9422596,9428398,9429044,9431012,9432028,9432379,9432683,9432971,9433096,9433655,9433946,9434802,9435329,9435527,9435850,9435876,9436051,9437067,9437323,9437403&itag=18&mn=sn-5uaeznzk&pl=23&source=youtube&mm=31&ip=108.62.18.190&mime=video/mp4&requiressl=yes&expire=1464594226&mv=m&mt=1464572379&ms=au&id=o-AAoZ2sMU-9ULInZjN6ugmhG_8hBJeCQC1J7r9oDtZAKc&lmt=1458188004221288&sparams=dur,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,requiressl,source,upn,expire&signature=10879388ACE74DA8C035A2D6723656A57268B106.A6BA3A7DFFD8EF6A168572F838F63DCADADFEE67&dur=149.652&initcwndbps=8983750&sver=3&nh=IgpwcjA0LmF0bDIyKg03Mi4xNC4yMTMuMTkz&title=Zootropolis+-+UK+Trailer+2+-+OFFICIAL+Disney+%7C+HD

PS:当您阅读本文时,Link 可能不起作用,但重点在于预期 links 的差异以及直接的 link看起来像。