日期:2014-05-20  浏览次数:21143 次

难...怎么监视网页中的下载链接, 我想做个类似flashget的下载器?
自己做了个浏览器,然后要做个下载管理的.
怎么监视网页中的下载链接,   我想做个类似flashget的下载器?  

就是自己做一个下载的东东.   还要断点续传

谢谢各位   了.

------解决方案--------------------
up
------解决方案--------------------
遍历网页的源代码,用正则取出 <a href= " "> href中的内容
一个想法,没有试过
------解决方案--------------------
帮LZ顶啊~~~~
------解决方案--------------------
IE、Firefox、Opera等都有接口可以做这个工作,你要自己查。

IE的话,可以通过插件来做,也就是通常流氓软件的做法,可以做的事情非常非常多,监听用户点击链接只是小工作。FF有标准的扩展标准,监听用户下载点击也不难。Opera有自己的开发社区,你要去看看。
------解决方案--------------------

------解决方案--------------------
帮你顶。
------解决方案--------------------
flashget 是利用插件做的。
------解决方案--------------------
up
------解决方案--------------------
document Object

--------------------------------------------

Represents the HTML document in a given browser window.

Members Table

The following table lists the members exposed by the document object. Click a tab on the left to choose the type of member you want to view.


------解决方案--------------------
在你的 浏览器 中 获得 document对象
HTMLDocument
{332C4425-26CB-11D0-B483-00C04FD90119}

注意:此类在 .NET Framework 2.0 版中是新增的。

提供对 WebBrowser 控件承载的 HTML 文档的顶级编程访问。

命名空间:System.Windows.Forms
程序集:System.Windows.Forms(在 system.windows.forms.dll 中)

语法
Visual Basic(声明)
Public NotInheritable Class HtmlDocument

Visual Basic(用法)
Dim instance As HtmlDocument


C#
public sealed class HtmlDocument

C++
public ref class HtmlDocument sealed

J#
public final class HtmlDocument

JScript
public final class HtmlDocument


备注

注意:此属性在 .NET Framework 2.0 版中是新增的。

获取此 HTML 文档中所有超链接的列表。

命名空间:System.Windows.Forms
程序集:System.Windows.Forms(在 system.windows.forms.dll 中)

语法
Visual Basic(声明)
Public ReadOnly Property Links As HtmlElementCollection

Visual Basic(用法)
Dim instance As HtmlDocument
Dim value As HtmlElementCollection

value = instance.Links


C#
public HtmlElementCollection Links { get; }

C++
public:
property HtmlElementCollection^ Links {
HtmlElementCollection^ get ();
}

J#
/** @property */
public HtmlElementCollection get_Links ()


JScript
public function get Links () : HtmlElementCollection




属性值
HtmlElement 对象的 HtmlElementCollection。
备注
此集合将包含使用 HTML 中的 A、LINK 和 AREA 标记创建的所有链接。

此集合中包含的 HtmlElement 对象用于封装非托管的 IHTMLLinkElement 接口。要安全地访问基础接口的属性,请使用 GetAttribute 方法。

平台
Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。