In the first two articles I have given most of the WEBQQ operation
Second article http://blog.csdn.net/zhujunxxxxx/article/details/38941599
First article http://blog.csdn.net/zhujunxxxxx/article/details/38931287
In this article there is not too much explanation of the practice
The source of this article http://blog.csdn.net/zhujunxxxxx reprint please specify
Sometimes you need to add some features to do it, I give a method here.
While debugging the WEBQQ robot, I use Google Chrome's F12 developer tool to capture the network packet, WEBQQ most of which are GET request parameters used to get the values that are obtained through Login2
This method is to get the user real QQ seemingly nothing to do with these are to analyze its network request to get
public string Getfriendqq (String tuin) {string url = "http://s.web2.qq.com/api/get_friend_uin2?tuin={$t uin}&verifysession=&type=1&code=&vfwebqq={$vfwebqq}&t=1409915278768 "; url = URL. Replace ("{$tuin}", Tuin); url = URL. Replace ("{$tuin}", THIS.VFWEBQQ); Httpitem item = new Httpitem () {url = URL, Encoding = System.Text.Encoding.GetEn Coding ("Utf-8"), Method = "get", Istolower = false, Timeout = 100000, Readwritetimeout = 30000, Host = host[1], Referer = referer[1], UserA Gent = "mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) gecko/20100101 firefox/18.0 ",//user browser type, version, operating system option has default value ContentType =" Application/x-www-fo Rm-urlencoded ", Resulttype = resulttype.string,}; Httpresult result = http. Gethtml (item); JobjECT ret = (jobject) jsonconvert.deserializeobject (result. Html); if (! Checkresult (ret)) {Ongetdataerror (new Roboteventargs ("Get data error at GETFRIENDQQ")); return null; } jobject Retjson = (jobject) ret["result"]; String QQ = retjson["Account"]. ToString (); if (friendlist. ContainsKey (Tuin)) friendlist[tuin].qq = QQ; return QQ; }
So you need to add what features you directly to debug to two, if anyone needs the project can give you, but paid.
C # WEBQQ Protocol bulk Robot (III)