QQ 所绑手机号查询接口 + 使用方法 + 代码案例

接口信息

请求信息

Parameter Argument
x= zy.xywlapi.cc
Website SSL OPEN
api https://zy.xywlapi.cc/qqapi?qq=
qq=? Your QQ Number

返回信息

{"status":200,"message":"查询成功","qq":"**********","phone":"***********","phonediqu":"**省**市移动"}
{"status":500,"message":"没有找到"}

小脚本

顺便献上本人用此接口开发的简单工具的拙劣的代码(Python):

import requests
import webbrowser
import time

api = "https://zy.xywlapi.cc/qqcx?qq="
def get_data(qq_number):
    r = requests.get(api + qq_number)
    if r.status_code == 200:
        response_dict = r.json()
        return response_dict
    else:
        return False

introduction = """
=============================================================
|                                                           |
|                 Welcome to use this tool!                 |
|  Before you use it,you must follow these three rules:     |
|                                                           |
| 1.This tool is only used to check whether the mobile phone|
| number is leaked. Do not use it for illegal purposes (such|
| as checking other people's mobile phone number).          |
|                                                           |
| 2.This program calls the network API to realize the query |
| function. After the program was developed, it has been    |
| tested by developer and has no bug. In case of other      |
| "query failed" problems, please do not bother the         |
| developer.                                                |
|                                                           |
| 3.If this tool is widely publicized, it is easy to cause  |
| the server of the API provider to be abused and shut down,|
| resulting in failure. It is also easy to bring various    |
| legal and dispute problems to illegal communicators. The  |
| developer is not responsible for this.                    |
|                                                           |
|                                                           |
|                         Development Team : Geek Collection|
|                              Actual Developer : Albert Lin|
|                                          Blog : GKCOLL.XYZ|
=============================================================
"""
print(introduction)

run = True
while run:
    qq_number = input("Input the QQ number you want to query :")

    if get_data(qq_number) == False:
        print("Network connected failed,please try again...")
        print("-----------------------------------------------")
    else:
        # The api will return a json dict:{"status":200,"message":"查询成功","phone":"***********","phonediqu":"**** **","lol":"****","wb":"****","qqlm":"****"}
        data = get_data(qq_number)
        if data["message"] == "查询成功":
            phone = data["phone"]
            phone_number_from = data["phonediqu"]
            print("Query successfully!The phne number is " + phone + " , comes from " + phone_number_from + ".")
        elif data["message"] == "没有找到":
            print("Query failed,please try querying for other QQ number(s)...")
        print("-----------------------------------------------")

    continue_run = input("Do you want to continue? input \"y\" or \"Y\" for YES; \"n\" or \"N\" for NO :")
    if continue_run.lower() == "y":
        print("===============================================")
    else:
        input("Enter to exit and open developer's blog website , you can also choose to click the upper right corner to exit directly...")
        webbrowser.open("https://www.gkcoll.xyz")
        time.sleep(4)
        run = False
版权声明
作者:灰尘疾客
链接:https://www.gkcoll.xyz/234.html
来源:极客藏源
注意:若文章头部无特殊声明,则文章为作者原创,版权归作者所有,未经允许请勿转载(默认允许)。
转载须知:若无特殊说明,本站所有文章均遵循 CC BY-NC-SA 4.0 协议发布,转载、二次创作请遵守该协议内容,并参考以下文案添加转载声明:本文转载自网站 极客藏源 的用户 @灰尘疾客 的文章 《QQ 所绑手机号查询接口 + 使用方法 + 代码案例》。本转载文发布遵循与原文相同的 CC BY-NC-SA 4.0 协议
THE END
分享
二维码
海报
QQ 所绑手机号查询接口 + 使用方法 + 代码案例
接口信息 请求信息 Parameter Argument x= zy.xywlapi.cc Website SSL OPEN api https://zy.xywlapi.cc/qqapi?qq= qq=? Your QQ Number 返回……
<<上一篇
下一篇>>