你想写采集器吗,要获取全部的字符串: 想要采集别的筛选字符,自己用正则筛选,。貌似采集器都是这样的思路,一个站一个站的采集方法也不同,
HttpWebRequest request;
HttpWebResponse response;
StreamReader reader;
request = WebRequest.Create("http://bbs.kukupig.com/") as HttpWebRequest;
response = (HttpWebResponse)request.GetResponse();
reader = new StreamReader(response.GetResponseStream());//这里面可以重载encoding,对应网页编码方式
string returnText = reader.ReadToEnd(); |