如何检测.flv下载网址? [英] how to detect .flv download URL?

查看:94
本文介绍了如何检测.flv下载网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是感兴趣firefox插件如何像DownloadHelper,能够自动找到.flv网址

im just interested how firefox plugins like DownloadHelper, is able to automatically find .flv URL

推荐答案

有一堆可能的方法和DownloadHelper似乎实现了其中的几个。如果您提取.xpi文件(这是一个ZIP文件)并查看组件文件夹,您将看到许多用于获取视频的不同处理程序。我没有彻底看过它,但你会注意到dhYoutubeProbe.js基本上从DOM中提取视频ID,然后将其插入标准的YouTube URL模式以获取FLV。

There are a bunch of possible approaches and DownloadHelper seems to implement a couple of them. If you extract the .xpi file (which is a ZIP file) and look in the components folder, you'll see a bunch of different handlers for getting videos. I haven't looked at it thoroughly but you'll notice that dhYoutubeProbe.js basically extracts the video ID from the DOM and then plugs that into a standard YouTube URL pattern for fetching FLVs.

dhNetworkProbe似乎实现了一种更加偷偷摸摸和有趣的方法 - 它监视浏览器缓存和/或HTTP请求以传输媒体文件以获取底层文件的URL。

dhNetworkProbe seems to implement a more sneaky and interesting approach - it monitors the browser cache and/or HTTP requests for transfers of media files to get the underlying file's URL.

您还可以查看Firebug或类似的监控HTTP请求和响应的方式。通过Flash播放器播放FLV会像任何其他(非流媒体)请求一样记录到Firebug。

You could also look at how Firebug or similar monitor HTTP requests and responses. Playing an FLV via Flash player logs to Firebug like any other (non-streaming) request.

这篇关于如何检测.flv下载网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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