YouTube电影下载程序如何工作? - YouTube [英] How does a YouTube movie downloader work? - YouTube

查看:191
本文介绍了YouTube电影下载程序如何工作? - YouTube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很担心如何 Video DownloadHelper






有什么想法吗?

解决方案这个答案现在可能已经过时了,请参阅下面的评论。这个事情最终会发生,因为YouTube逐渐淘汰了FLV并转向了HTML5视频。

他们只是解析链接到实际的FLV文件,并下载它。



这是通过复制视频标识符网址:

  http://www.youtube.com/watch?v=WEeqHj3Nj2c 

$ b

这是用来请求有关视频的信息:

  http://www.youtube.com/get_video_info?&video_id=WEeqHj3Nj2c 

视频信息包括 TOKEN ,然后您可以使用它来发出另一个请求:

 的http:// WW w.youtube.com/get_video?video_id=WEeqHj3Nj2c&t=TOKEN 

如果一切顺利,YouTube将以 HTTP 303的方式响应,包括一个位置的标题,直接链接到 FLV 文件。


I'm wordering how apps such as Video DownloadHelper work.


Any ideas?

解决方案

UPDATE: This answer may now be outdated, see comments below. This was going to happen eventually anyway, as YouTube phases out FLV and shifts toward HTML5 video...

They simply resolve the link to the actual FLV file, and download it.

This is done by copying the video identifier from the URL:

http://www.youtube.com/watch?v=WEeqHj3Nj2c

Which is used to request info about the video:

http://www.youtube.com/get_video_info?&video_id=WEeqHj3Nj2c

The video info includes a TOKEN, which you can then you use to make another request:

http://www.youtube.com/get_video?video_id=WEeqHj3Nj2c&t=TOKEN

If all goes well, YouTube will respond with HTTP 303 See Other, including a Location header with a direct link to the FLV file.

这篇关于YouTube电影下载程序如何工作? - YouTube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆