本文介绍了如何使用 youtube api v3 从 youtube 视频获取直接链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到多个网站使用来自 youtube 的直接链接.

例如,对于这个 youtube 链接:
https://www.youtube.com/watch?v=yY6ex5Dqkks

质量 720p 的直接链接是:
http://r12---sn-n4v7kne7.c.docs.google.com/videoplayback?sparams=dur,expire,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,source,upn&key=cms1&mime=video%2FMP4&安培; FEXP = 9416126%2C9416891%2C9420452%2C9422596%2C9423662%2C9427902%2C9428399&安培;到期= 1459599509&安培; ipbits = 0&安培; UPN = 99USaJ1LnkA&安培; DUR = 30.093&安培; PL = 48&安培; LMT = 1459568922521937&安培;签名= 63FE6D047E895678BAD75266A901C5ABA672A189.0ABBCAA69A9C69003ED38AC11CC08BBF237BB1B3&安培; ITAG=22&source=youtube&ip=2604:a880:1:20::1ff:1&ratebypass=yes&id=o-AJMIxtvMFBps0IkCDE5t76_cGObBwaTk_xoexDWKt2c0&sver_3&n7n&n7&n7&n7&n7&n7ms=au&mt=1459577754&mv=m&nh=IgpwcjAxLnBhbzAzKgkxMjcuMC4wLjE&utmg=ytap1&title=New%20TV%20Ad:%20%22Nose%2>2

如何获得与 youtube api v3 或任何其他网站的直接链接.

使用 https://rg3.github.io/youtube-dl/-g.这里还有一些字符.

I have seen multiple sites that use direct link from youtube.

For example, for this youtube link :
https://www.youtube.com/watch?v=yY6ex5Dqkks

the direct link for quality 720p is :
http://r12---sn-n4v7kne7.c.docs.google.com/videoplayback?sparams=dur,expire,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,source,upn&key=cms1&mime=video%2Fmp4&fexp=9416126%2C9416891%2C9420452%2C9422596%2C9423662%2C9427902%2C9428399&expire=1459599509&ipbits=0&upn=99USaJ1LnkA&dur=30.093&pl=48&lmt=1459568922521937&signature=63FE6D047E895678BAD75266A901C5ABA672A189.0ABBCAA69A9C69003ED38AC11CC08BBF237BB1B3&itag=22&source=youtube&ip=2604:a880:1:20::1ff:1&ratebypass=yes&id=o-AJMIxtvMFBps0IkCDE5t76_cGObBwaTk_xoexDWKt2c0&sver=3&cms_redirect=yes&mm=31&mn=sn-n4v7kne7&ms=au&mt=1459577754&mv=m&nh=IgpwcjAxLnBhbzAzKgkxMjcuMC4wLjE&utmg=ytap1&title=New%20TV%20Ad:%20%22Nose%22

How can I get this direct link with youtube api v3 or any other.

解决方案

use https://rg3.github.io/youtube-dl/ with -g. here are some more characters.

这篇关于如何使用 youtube api v3 从 youtube 视频获取直接链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 10:48