YouTube电影下载程序如何工作? - YouTube [英] How does a YouTube movie downloader work? - YouTube
问题描述
我很担心如何 Video DownloadHelper 。
有什么想法吗?
他们只是解析链接到实际的FLV文件,并下载它。
这是通过复制视频标识符网址:
http://www.youtube.com/watch?v=WEeqHj3Nj2c
$ c
$ 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屋!