- <img alt="奋斗" src="http://static.blog.csdn.net/xheditor/xheditor_emot/default/struggle.gif">
- HttpWebRequest获取页面数据
- HttpWebRequest req = (HttpWebRequest)WebRequest.Create("");
- req.Method = "GET";
- HttpWebResponse myResponse= (HttpWebResponse)req.GetResponse();
- StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.Default);
- string content = reader.ReadToEnd();
- reader.Close();
- 再用正则解析
转载于:https://my.oschina.net/weiqinxue/blog/725250