!/usr/bin/python
-- coding:utf-8 --
import requests
import json
import os
'''打印模块作者信息'''
def author():
os.system("color 2")
name="刘鸿运"
age="16"
print(f" 姓名:{name}\n 年龄:{age}")
print("以上就是作者信息!\n")
print(f"再次强调所有版权:{name}所有!")
return name and age
author()
'''社会语录'''
def 社会语录():
url="https://api.lxurl.net/api/shehui.php"
resu=requests.get(url)
result=resu.text
print(result)
'''输入QQ号查昵称'''
def 输入QQ号查昵称():
qq_input=str(input("请输入QQ号:"))
url=f"https://api.lxurl.net/api/qqimg.php?qq={qq_input}"
resu=requests.get(url)
result=resu.text
texts=json.loads(result)
print(f"QQ昵称:{texts['name']}")
'''随机一言'''
def 随机一言():
url="https://api.lxurl.net/api/yiyan.php"
resu=requests.get(url)
result=resu.text
print(result)
'''舔狗日记'''
def 舔狗日记():
url="https://api.lxurl.net/api/tiangou.php"
resu=requests.get(url)
result=resu.text
print(result)
'''随机骚话'''
def 随机骚话():
url="https://api.lxurl.net/api/saohua.php"
resu=requests.get(url)
result=resu.text
print(result)
'''查询域名备案信息'''
def 查询域名备案信息():
cha_one=str(input("请输入网址:"))
url=f"https://api.lxurl.net/api/webicp.php?url={cha_one}"
resu=requests.get(url)
result=resu.text
resux=json.loads(result)
print(f"{resux['data']['name']}\n{resux['data']['nature']}{resux['data']['icp']}\n{resux['data']['sitename']}\n"
f"{resux['data']['url']}\n{resux['data']['time']}")
'''查看综合收录量'''
def 查看综合收录量():
nose_one=str(input("请输入网址:"))
url=f"https://api.lxurl.net/api/bdsl.php?url={nose_one}"
resu=requests.get(url)
result=resu.text
texts=json.loads(result)
print(f"百度:{texts['baidu']}\n360:{texts['sl360']}\nsm:{texts['sm']}\nsogou:{texts['sogou']}\ngoogle:{texts['google']}")
'''新冠肺炎疫情实时数据'''
def 新冠肺炎疫情实时数据_选择城市():
nosda_one=str(input("请输入城市名称:"))
url=f"https://api.vvhan.com/api/covid?city={nosda_one}"
resu=requests.get(url)
result=resu.text
loadsd=json.loads(result)
print(loadsd)
print(f"日期:{loadsd['data']['updatetime']}\n地球地址:{loadsd['data']['country']}\n省份:{loadsd['data']['province']}\n"
f"{loadsd['data']['city']}市\n新增锁定:{loadsd['now']['sure_new_loc']}\n隐藏:{loadsd['now']['sure_new_hid']}\n"
f"确诊:{loadsd['now']['sure_present']}\n历史确诊:{loadsd['history']['sure_cnt']}\n"
f"当前:{loadsd['history']['cure_cnt']}\n死亡:{loadsd['history']['die_cnt']}\n"
f"高风险:{loadsd['danger']['high_risk']}\中等风险:{loadsd['danger']['medium_risk']}")
print("太麻烦了下次更新吧泪崩,一个bug改一天!")
def 微博热搜实时():
url="https://api.vvhan.com/api/wbhot"
resu=requests.get(url)
result=resu.text
texs=json.loads(result)
print(texs)
def 获取当前位置():
url="https://api.vvhan.com/api/getIpInfo"
resu=requests.get(url)
result=resu.text
tesd=json.loads(result)
print(f"ip{tesd['ip']}\n地址:{tesd['info']['country']}\n省份:{tesd['info']['city']}\n"
f"市:{tesd['info']['city']}\nlsp:{tesd['info']['lsp']}\n手机号前面字段:{tesd['info']['postcode']}")
def 检测域名是否被墙():
url_input=str(input("请输入网址:"))
url=f"https://api.vvhan.com/api/qiang?url={url_input}"
resu=requests.get(url)
result=resu.text
loasd=json.loads(result)
print(f"结果:{loasd['msg']}")
def 获取网站标题():
url_input=str(input("请输入网址:"))
url=f"https://api.vvhan.com/api/title?url={url_input}"
resu=requests.get(url)
result=resu.text
loasdsa=json.loads(result)
print(f"网站标题是:{loasdsa['title']}")
def 网页跳转提示页面():
urlsd=str(input("请输入网址:"))
url_inputs=str(input("请输入爱心|机械|默认:"))
if url_inputs=="爱心":
url = f"https://api.66mz8.com/api/go.php?style={url_inputs}&url={urlsd}"
print(url)
elif url_inputs=="机械":
urls = f"https://api.66mz8.com/api/go.php?style={url_inputs}&url={urlsd}"
print(urls)
elif url_inputs=="默认":
urlsdd= f"https://api.66mz8.com/api/go.php?style={url_inputs}&url={urlsd}"
print(urlsdd)
else:
exit()
def 域名报毒检测():
url_input=str(input("请输入网址:"))
url=f"https://api.66mz8.com/api/check.php?url={url_input}"
resd=requests.get(url)
result=resd.text
sdaddw=json.loads(result)
print(f"结果:{sdaddw['state']}")
def 圆通快递轨迹查询():
urlsad=str(input("请输入快递单号:"))
url=f"https://api.66mz8.com/api/yto.php?num={urlsad}"
resu=requests.get(url)
result=resu.text
print(f"查询结果:{result}")
def 文字转语音():
urlsd=str(input("请输入文字信息:"))
url=f"https://api.vvhan.com/api/song?txt={urlsd}"
os.system(f"start {url}")
def 淘宝买家秀():
url="https://api.vvhan.com/api/tao"
os.system(f"start {url}")
def 二维码生成():
sda=str(input("请输入二维码内容:"))
url=f"https://api.vvhan.com/api/qr?text={sda}"
os.system(f"start {url}")
def ip天气签名():
sdas=str(input("请输入提示语:"))
url=f"https://api.vvhan.com/api/ipCard?tip={sdas}"
os.system(f"start {url}")
def 查询qq电脑是否在线():
sdsdad=int(input("请输入QQ号:"))
url=f"https://api.vvhan.com/api/qqcode?qq={sdsdad}"
resu=requests.get(url)
result=resu.text
loasd=json.loads(result)
print(f"结果:{loasd['state']}")
def 随机cosplay图片():
url="https://api.vvhan.com/api/mobil.girl"
os.system(f"start {url}")
def liushi秒看世界():
url="https://api.vvhan.com/api/60s"
os.system(f"start {url}")
def 营养视频():
url="http://api.muuzi.cc/api/yysp?type=json"
resu=requests.get(url)
result=resu.text
lasod=json.loads(result)
os.system(f"start {lasod['url']}")
def 获取网站图标():
sdao_input=str(input("请输入网址:"))
url=f"http://api.muuzi.cc/view/api/ico?url={sdao_input}"
os.system(f"start {url}")
def 兴奋文学():
url="http://api.muuzi.cc/api/xfwx"
resu=requests.get(url)
result=resu.text
sdal=json.loads(result)
os.system(f"start {sdal['url']}")
def 网易云_新歌榜():
url="https://api.vvhan.com/api/rand.music?sort=新歌榜"
os.system(f"start {url}")
def 网易云_热歌榜():
url="https://api.vvhan.com/api/rand.music?sort=热歌榜"
os.system(f"start {url}")
def 网易云_飙升榜():
url="https://api.vvhan.com/api/rand.music?sort=飙升榜"
os.system(f"start {url}")
def 网易云_原创():
url="https://api.vvhan.com/api/rand.music?sort=原创"
os.system(f"start {url}")
def 每日一句励志英语_随机():
url="https://api.vvhan.com/api/en?type=sj"
resu=requests.get(url)
result=resu.text
sda=json.loads(result)
print(f"英语:{sda['data']['en']}\n翻译:{sda['data']['zh']}")
def 每日一句励志英语_今天():
url="https://api.vvhan.com/api/en"
resu=requests.get(url)
result=resu.text
sda=json.loads(result)
print(f"英语:{sda['data']['en']}\n翻译:{sda['data']['zh']}")
def 随机一句情话():
url="https://api.vvhan.com/api/love"
resu=requests.get(url)
result=resu.text
print(result)
def 随机笑话():
url="https://api.vvhan.com/api/joke"
resu=requests.get(url)
result=resu.text
print(result)
def 随机风景图片():
url="https://api.vvhan.com/api/view"
os.system(f"start {url}")
def 随机动漫图片():
url="https://api.vvhan.com/api/acgimg"
os.system(f"start {url}")
def 今日油价():
sda=str(input("请输入省份:"))
url=f"https://qqlykm.cn/api/oilprice/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&name={sda}"
resu=requests.get(url)
result=resu.text
das=json.loads(result)
print(f"更新时间:{das['update_time']}\n零号柴油:{das['data']['p0']}\n89号汽油:{das['data']['p89']}\n"
f"92号汽油:{das['data']['p92']}\n95号汽油:{das['data']['p95']}")
def 藏头诗生成():
isad=str(input("请输入想要说的话:"))
url="https://qqlykm.cn/api/acrostic/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&words={}".format(isad)
resu=requests.get(url)
result=resu.text
s=json.loads(result)
print(result)
print(f"{s['data']['list']}")
def 身份证信息查询():
dsad=int(input("请输入身份证号:"))
url=f"https://qqlykm.cn/api/IDCard2/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&id={dsad}"
resu=requests.get(url)
result=resu.text
l=json.loads(result)
print(f"{l['data']['area']}\n身份证号:{l['data']['number']}\n{l['data']['province']}省\n"
f"{l['data']['town']}\n{l['data']['city']}\n{l['data']['sex']}\n{l['data']['length']}\n"
f"出生日期:{l['data']['birth']}\n当前年龄:{l['data']['age']}")
def qq查手机号():
qq=int(input("请输入QQ号:"))
url=f"https://zy.xywlapi.cc/qqapi?qq={qq}"
resu=requests.get(url)
result=resu.text
r=json.loads(result)
print(f"查询QQ号:{r['qq']}\n手机号:{r['phone']}\n地址:{r['phonediqu']}")
def 手机号查qq():
phone=int(input("请输入手机号:"))
url=f"https://zy.xywlapi.cc/qqphone?phone={phone}"
resu=requests.get(url)
result=resu.text
r=json.loads(result)
print(f"查询手机号:{phone}\n地址:{r['phonediqu']}\n查到的QQ号:{r['qq']}")
def 手机号qq号查询lol信息():
sd=int(input("请输入QQ号或者手机号:"))
url=f"https://zy.xywlapi.cc/qqlol?qq={sd}"
resu=requests.get(url)
result=resu.text
d=json.loads(result)
print({d['message']})
def qq号lol名字查信息():
d=str(input("请输入名字:"))
url=f"https://zy.xywlapi.cc/lolname?name={d}"
resu=requests.get(url)
result=resu.text
c=json.loads(result)
print(c)
def 游戏名字qq老密码查询():
qq=int(input("请输入qq:"))
url=f"https://zy.xywlapi.cc/qqlm?qq={qq}"
resu=requests.get(url)
result=resu.text
d=json.loads(result)
print(f"查询qq:{d['message']}\nQQ老密码:{d['qqlm']}")
def qq号微博id查信息():
wb=int(input("请输入QQ号:"))
url=f"https://zy.xywlapi.cc/wbapi?id={wb}"
resu=requests.get(url)
result=resu.text
d=json.loads(result)
print(d)
def 微博id查手机号():
wb=str(input("请输入微博id:"))
url=f"https://zy.xywlapi.cc/phone={wb}"
resu=requests.get(url)
result=resu.text
sd=json.loads(result)
print(sd)
def 校验搜索引擎爬虫真实性():
sra=str(input("请输入要校验的ip:"))
url=f"https://api.uomg.com/api/ck_spider?ip={sra}"
resu=requests.get(url)
result=resu.text
sd=json.loads(result)
print(sd['spider'])
def 药品说明书():
sad=str(input("请输入药品名:"))
url=f"https://api.tianapi.com/yaopin/index?key=cdf641f6a57e1fbc7ebfa2c2d805ab27&word={sad}"
resu=requests.get(url)
result=resu.text
c=json.loads(result)
print(f"查询名字:{c['newslist'][0]['title']}")
print(f"作用:{c['newslist'][-1]['content']}")
def qq空间昵称_头像获取():
d=int(input("请输入qq:"))
url=f"https://tenapi.cn/qqname/?qq={d}"
resu=requests.get(url)
result=resu.text
s=json.loads(result)
print(f"qq名字:{s['name']}\nqq邮箱:{s['mail']}\n头像地址:{s['imgurl']}")
def qq加群():
s=int(input("请输入qq号:"))
url=f"https://tenapi.cn/qun/?qun={s}"
os.system(f"start {url}")
def qq网址拦截查询():
sda=str(input("请输入网址:"))
url=f"https://tenapi.cn/qqlj/?url={sda}"
resu=requests.get(url)
result=resu.text
c=json.loads(result)
print(f"{c['type']}")
def 微信网址拦截查询():
sda=str(input("请输入网址:"))
url=f"https://tenapi.cn/wx/?url={sda}"
resu=requests.get(url)
result=resu.text
c=json.loads(result)
print(f"{c['type']}")
def bilibili用户信息获取():
sad=int(input("请输入用户id:"))
url=f"https://tenapi.cn/bilibili/?uid={sad}"
resu=requests.get(url)
result=resu.text
c=json.loads(result)
print(f"查询uid:{c['data']['uid']}\n用户名:{c['data']['name']}\nlevel:{c['data']['level']}\n"
f"性别:{c['data']['sex']}\n标签:{c['data']['description']}\n"
f"头像地址:{c['data']['avatar']}")
def bilibili视频封面获取():
sad=str(input("请输入你所需要查询的视频Av/Bv号:"))
url=f"https://tenapi.cn/bilicover/?id={sad}"
os.system(f"start {url}")
def bilibili视频信息获取():
sad=str(input("请输入你所需要查询的视频Bv号:"))
url=f"https://tenapi.cn/bv/?id={sad}"
resu=requests.get(url)
result=resu.text
s=json.loads(result)
print(f"视频名:{s['data']['name']}\n标题:{s['data']['title']}\n视频地址:{s['data']['cover']}\n"
f"说明:{s['data']['description']}\nsort:{s['data']['sort']}\n播放量:{s['data']['view']}\n"
f"coin:{s['data']['coin']}\n喜欢:{s['data']['like']}\ncollect:{s['data']['collect']}")
def 抖音网址检测():
sda=str(input("请输入网址:"))
url=f"http://api.btstu.cn/dysafe/api.php?url={sda}"
resu=requests.get(url)
result=resu.text
s=json.loads(result)
print(s['msg'])
def qq登录_获取skey():
print("全部技术由刘鸿运技术支持!")
os.system('start https://qweb.applinzi.com/tool/newsid/')
def qq领取7天绿钻():
str1=int(input("请输入QQ号:"))
str2=str(input("请输入skey:"))
str3=str(input("请输入pskey:"))
str4=str(input("请输入superkey:"))
url=f"http://apibb.rjk66.cn/luzuan/lz7.php?uin={str1}&skey={str2}&pskey={str3}&superkey={str4}"
resu=requests.get(url)
result=resu.text
d=json.loads(result)
print(f"{d['msg']}")
def qq每个月领取3天绿钻():
str1 = int(input("请输入QQ号:"))
str2 = str(input("请输入skey:"))
str3 = str(input("请输入pskey:"))
str4 = str(input("请输入superkey:"))
url = f"http://apibb.rjk66.cn/luzuan?uin={str1}&skey={str2}&pskey={str3}&superkey={str4}"
resu = requests.get(url)
result = resu.text
d = json.loads(result)
print(f"{d['msg']}")
def 获取qq所有key_官方():
print("技术由刘鸿运技术支持!")
qris="http://qr.rjk66.cn/api/gethzqr/"
resu=requests.get(qris)
result=resu.text
sd=json.loads(result)
print(sd)
ur=f"http://apibb.rjk66.cn/getqq/login.php?do=qrlogin&qrsig={sd['data']['qrcode']}"
ress=requests.get(ur)
resua=ress.text
l=json.loads(resua)
print(l)
def 新qq_领取2天超级会员():
qq=int(input("请输入qq:"))
skey=str(input("请输入skey:"))
qkey=str(input("请输入qskey:"))
url=f"http://apibb.rjk66.cn/api_lqhy3.php?uin={qq}&skey={skey}&pskey={qkey}"
resu=requests.get(url)
result=resu.text
s=json.loads(result)
print(s)
def qq大会员等级查询():
qq=int(input("请输入qq:"))
cookie=str(input("请输入cookie:"))
url=f"http://check.uomg.com/api/qq/bigvip?token=&cookie={cookie}&qq={qq}"
resu=requests.get(url)
result=resu.text
l=json.loads(result)
print(l)
def 内地即将上映的电影():
url="https://qqlykm.cn/api/jijiangshangying/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY"
resu=requests.get(url)
result=resu.text
l=json.loads(result)
for i in l['data']:
print("即将上映的电影:")
print(i['title'])
print(i['picUrl'])
print(i['type'])
print(i['actors'])
print(i['releaseDateStr'])
print("**********************")
def 百度热搜():
c=0
url="https://qqlykm.cn/api/hotlist/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&type=baidu"
resu=requests.get(url)
result=resu.text
l=json.loads(result)
print(l)
for i in l['data']:
print('信息如下')
print(f"标题:{i['title']}")
print(f"网址:{i['url']}")
print(f"内容:{i['desc']}")
print(f"地址:{i['picurl']}")
print(f"阅读量:{i['hotScore']}")
c=c+1
else:
print(f"一共{c}条热搜")
print("全部技术由刘鸿运技术支持所制!")
def 抖音视频去水印():
s=str(input("请输入抖音链接:"))
url=f"https://qqlykm.cn/api/free/douyinjx/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&url={s}"
resu=requests.get(url)
result=resu.text
l=json.loads(result)
print(l['data']['video'])
def 手机号测吉凶():
s=int(input("请输入手机号:"))
url=f"https://qqlykm.cn/api/hmjx/get?key=rW0kPGod3PiV1hoKcYFRmLfYbY&number={s}"
reus=requests.get(url)
result=reus.text
d=json.loads(result)
print(f"命运:{d['data']['destiny']}\n详细内容:{d['data']['analysisDetail']}\n性格:{d['data']['characterAnalysis']}\n"
f"归属地省份:{d['data']['province']}\n归属地城市:{d['data']['city']}\n吉凶:{d['data']['jx']}\n"
f"运营商:{d['data']['operator']}\n细节说明:{d['data']['destinyDetail']}")
def cmd_关机():
ins=int(input("请输入关机秒数:"))
os.system(f"shutdown -s -t {ins}")
def cmd_取消关机():
os.system("shutdown -a")