主要利用System.Net.WebClient类
System.Net.WebClient wb = new System.Net.WebClient();
byte[] PageSources = wb.DownloadData(link);//link就是页面地址
string Encode = “UTF-8”;//编码
string Sources = System.Text.Encoding.GetEncoding(Encode).GetString(PageSources);
return Sources;