【发布时间】:2013-01-03 19:53:48
【问题描述】:
我可以下载一些包含所有内容(图像、脚本等)的 html 页面作为文件列表吗 还是单个网络存档?这只给我标记:
using (WebClient client = new WebClient())
{
client.DownloadFile("http://www.youtube.com", @"D:\anyfile.html");
//or
string htmlCode = client.DownloadString("http://www.yotube.com");
// save htmlcode ...
}
可能有任何 API 吗?
【问题讨论】:
-
如果这是一次性下载,您可以使用HTTrack 下载给定站点