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
文章版权归作者所有,未经允许请勿转载。
THE END