string url = "http://yyyd.gyzs.net/";
WebClient client = new WebClient();
string v = client.DownloadString(url);
string[] dates = v.Replace("<div class=", "~").Split('~');
string[] date1 = dates[3].Replace("href=","~").Split('~');
string[] date2 = date1[1].Replace(" title=", "~").Split('~');
string urls= date2[0].Substring(1,39);
string url1 = "http://yyyd.gyzs.net/" + urls;
string ss = client.DownloadString(url1);
System.IO.File.WriteAllText("E:/gyzs" + 1 + ".html", ss, Encoding.GetEncoding("GB2312"));
命名空间引用 using System.Net;