Home >Backend Development >PHP Tutorial >Getting website visitors via QQ is a mess.

Getting website visitors via QQ is a mess.

WBOY
WBOYOriginal
2016-07-25 08:48:041376browse
I saw someone posting before about getting the visitor QQ code. But if I didn’t look carefully, I found that many industries are doing this. Because most of the QQs of these visitors are groups with needs, balabalabala...
The following method was accidentally discovered last year due to the company's "needs". The principle is very simple, and I personally feel it is a Tencent bug.
1. Log in to the mobile version of qq, m.qzone.com. I didn’t pay much attention to the PC version.
2. "Homepage" -> "Visitor".
3. Development tools (F12)->network, ctrl+f "mqz_get_visitor". In this way, you can already see the json of the visitor record. The format is clear and concise. Pagination is also supported. In fact, after copying this url, you can view it without logging in. Occasionally something goes wrong, but just log in again.
------------------------------------------------- --------------------
The blocked visitors of the third tab can still view it. The method is the same and there is no need to log in again. Is it considered a bug? ?
How to embed the code into the website? It’s very simple. Getting website visitors via QQ is a mess.

Someone actually sells it online. I really can’t stand it! Getting website visitors via QQ is a mess. Getting website visitors via QQ is a mess. Getting website visitors via QQ is a mess.
  1. public function qq()
  2. {
  3. $mqz_url = ''; //mqz json
  4. $vResult = array();
  5. $this->snoopy->fetch($mqz_url);
  6. $visitJson = $this->snoopy->results;
  7. $visitArr = json_decode(htmlspecialchars_decode($visitJson, ENT_COMPAT), TRUE);
  8. foreach($visitArr['data']['visit']['datalist'] as $ n => $v) {
  9. $vResult[$n] = array('uin' => $v['uin'], 'vtime' => $v['vtime']);
  10. }
  11. }
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn