C # WEBQQ Protocol bulk Robot (III)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.