打个比方我现在输入网址www.163.com要求抓取到它网页上Html代码中“<title>网易</title>”中的网易两字如果输入www.sina.com则是<title>新浪首页</title>,就是新浪首页这几个字。现在求具体完整代码,关键是抓取,正则部分不用写太详细
解决方案 »
- 如何使用C#制作浏览器插件
- 用List<>如何声明一个二维数组,大概像这样:List<string,string>
- [高分高酬] 如何用 webbrowser 访问有安全控件的网页?
- datagridview问题2
- 请教关于学习c#的问题1
- DataGridView可以根据个人习惯设置隐藏一些列,如何实现下次自动记住已经隐藏的列
- 很弱的问题:编ERP是用ADO好还是ODBC好,有什么区别么?
- 序列化对象保存在硬盘上,造成内存一直在涨.有人碰到过这个问题吗?
- 装箱和拆箱问题.
- comobox的下拉部分为dataGridView,并且修改他的值要查询
- C#控制台应用程序——简易的信息注销问题
- 大虾帮帮忙,关于PropertyGrid
request.AllowAutoRedirect = false;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream s = response.GetResponseStream(); StreamReader sr = new StreamReader(s,Encoding.GetEncoding("gb2312")); string strHtml = sr.ReadToEnd(); string strHead = Regex.Match(strHtml, "<title>(.*)</title>").Groups[1].Value ;
MessageBox.Show(strHead);
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/