摘要:
public static string QueryWebPageContent(string url) { try { string content = ""; WebClient wc = new WebClient(); byte[] buffer = wc.DownloadData(new Uri(url)); //用默认编码转换网页内容 Encoding encoding = Encoding.Default; content = Encoding.Default.GetString(buffer); //得到网页的实际编码 Regex regex = new R 阅读全文