抓取论坛数据 http://blog.csdn.net/xuwenwu/article/details/6009678 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.cnblogs.com/yzpang/archive/2011/09/23/2186162.htmlhttp://www.cnblogs.com/wyux6868/archive/2009/11/11/1601140.html 抓取博客园首页推荐文章示例,可以参考一下: HttpWebRequest httpWebRequest = WebRequest.Create(@"http://www.cnblogs.com") as HttpWebRequest; HttpWebResponse httpWebResponse = httpWebRequest.GetResponse() as HttpWebResponse; Stream stream = httpWebResponse.GetResponseStream(); StreamReader reader = new StreamReader(stream, Encoding.UTF8); string s = reader.ReadToEnd(); reader.Close(); stream.Close(); httpWebResponse.Close(); HtmlDocument htmlDoc = new HtmlDocument(); htmlDoc.LoadHtml(s); HtmlNodeCollection anchors = htmlDoc.DocumentNode.SelectNodes(@"//a[@class='titlelnk']"); foreach (HtmlNode anchor in anchors) Response.Write(anchor.InnerHtml + "<br/>"); Response.End(); 重分请求请问大家是否有完整的关于 许继104规约TCP IP接口开发的例子? 关于textbox的text的问题 vs2008用IE调试C#的问题 C#发送文件到URL(跪求高人指教) C#文件读写问题! 如何将32位的无符号整数uint32 转换为byte[4] 仍然32位 无聊散分 API MoveWindows问题,个别窗口不能移动 哪位大侠能帮帮小弟?水晶报表连接数据集问题. 讨论:c#中用Session来保存变量(含有DataSet,变量几十个吧)的潜在问题? zedgraph导出图片的问题 C#照片、图片查看器编写 或调用Windows查看器于窗体中
HttpWebRequest httpWebRequest = WebRequest.Create(@"http://www.cnblogs.com") as HttpWebRequest;
HttpWebResponse httpWebResponse = httpWebRequest.GetResponse() as HttpWebResponse;
Stream stream = httpWebResponse.GetResponseStream();
StreamReader reader = new StreamReader(stream, Encoding.UTF8);
string s = reader.ReadToEnd();
reader.Close();
stream.Close();
httpWebResponse.Close();
HtmlDocument htmlDoc = new HtmlDocument();
htmlDoc.LoadHtml(s);
HtmlNodeCollection anchors = htmlDoc.DocumentNode.SelectNodes(@"//a[@class='titlelnk']");
foreach (HtmlNode anchor in anchors)
Response.Write(anchor.InnerHtml + "<br/>");
Response.End();