社工api:在线Q绑查询手机号官网 输入qq号即可查询 还支持反查https://zy.xywlapi.cc
随机一言api:绵阳耳关明皿网络科技-API盒子-接口盒子 - 免费API大全-www.apihz.cnAPI盒子提供各种免费API接口。https://www.apihz.cn
代码:
#导入库
import requests
import time
print("欢迎来到久黎社工库")
url = 'https://cn.apihz.cn/api/yiyan/api.php?id=88888888&key=88888888'
response = requests.get(url)
time.sleep(0.1)
print('每日一言:',response.json()['msg'])#对接随机一言api
time.sleep(0.1)
print("""
─╔══╗╔══╗╔╗╔╗╔╗──╔══╗───╔══╗╔═══╗╔╗╔══╗
─╚╗╔╝╚╗╔╝║║║║║║──╚╗╔╝───║╔═╝║╔══╝║║║╔═╝
──║║──║║─║║║║║║───║║────║╚═╗║║╔═╗║╚╝║──
╔╗║║──║║─║║║║║║───║║────╚═╗║║║╚╗║║╔╗║──
║╚╝╚╗╔╝╚╗║╚╝║║╚═╗╔╝╚╗───╔═╝║║╚═╝║║║║╚═╗
╚═══╝╚══╝╚══╝╚══╝╚══╝───╚══╝╚═══╝╚╝╚══╝
""")
time.sleep(0.1)
#让用户选择
print("""
····久黎社工面板····
A·QQ查手机号
B·手机号查QQ
C·QQ查LOL
D·LOL查QQ
····by.Po1063····""")
#判断功能
dh = input("请输入代号:")
if(dh == 'A'):
qqh = input("请输入qq号:")
response = requests.post('https://api.xywlapi.cc/qqapi',
data={'qq':qqh})
status = int(response.json()['status'])
if(status == 200):#判断是否对接成功
print('手机号:',response.json()['phone'])
else:
print('查询失败')
elif dh == 'B':#往下依次类推
phone = input('请输入手机号:')
response = requests.post('https://api.xywlapi.cc/qqphone',
data={'phone':phone})
status = int(response.json()['status'])
if(status == 200):
print('qq号:',response.json()['qq'])
else:
print('查询失败')
elif dh == 'C':
qqh = input('请输入qq号:')
response = requests.post('https://api.xywlapi.cc/qqlol',
data={'qq':qqh})
status = int(response.json()['status'])
if(status == 200):
print('LOL:',response.json()['name'],response.json()['daqu'])
else:
print('查询失败')
elif dh == 'D':
name = input('请输入LOL名称:')
response = requests.post('https://api.xywlapi.cc/lolname',
data={'name':name})
status = int(response.json()['status'])
if(status == 200):
print('qq:',response.json()['qq'])
else:
print('查询失败')
else:
print('请输入正确的代号!')
print('by.Po1063')
拿走吱个声~
标签:status,qq,久黎,PYTHON,response,json,api,print,社工 From: https://blog.csdn.net/hjkgfy/article/details/139698393