就微信里面那编号为1的玩意
01 private string getFriends(string key)
02 {
03 try
04 {
05 WebClient MyWebClient = new WebClient();
06 MyWebClient.Credentials = CredentialCache.DefaultCredentials;
07 Byte[] pageData = MyWebClient.DownloadData("http://lo-li.net/weixin/***不告诉你" + key); //抓
08 string pageHtml = Encoding.UTF8.GetString(pageData); //UTF-8
09 msgType=1; //让程序返回微信text类型的消息
10 return pageHtml;
11 }
12
13 catch (WebException webEx)
14 {
15 Console.WriteLine(webEx.Message.ToString());
16 msgType=1;
17 return "没找到这货~~";
18 }
19 }
01 private string getFriends(string key)
02 {
03 try
04 {
05 WebClient MyWebClient = new WebClient();
06 MyWebClient.Credentials = CredentialCache.DefaultCredentials;
07 Byte[] pageData = MyWebClient.DownloadData("http://lo-li.net/weixin/***不告诉你" + key); //抓
08 string pageHtml = Encoding.UTF8.GetString(pageData); //UTF-8
09 msgType=1; //让程序返回微信text类型的消息
10 return pageHtml;
11 }
12
13 catch (WebException webEx)
14 {
15 Console.WriteLine(webEx.Message.ToString());
16 msgType=1;
17 return "没找到这货~~";
18 }
19 }