2020-08-24 08:04:52 +00:00
|
|
|
import random
|
2020-08-23 14:54:48 +00:00
|
|
|
from time import sleep
|
|
|
|
from requests import get
|
|
|
|
from pagermaid.listener import listener
|
|
|
|
from os import remove
|
|
|
|
|
|
|
|
|
2020-08-25 15:16:16 +00:00
|
|
|
@listener(is_plugin=True, outgoing=True, command="mz",
|
2020-08-23 14:54:48 +00:00
|
|
|
description="多网站随机获取性感(可能)的写真")
|
2020-08-25 15:16:16 +00:00
|
|
|
async def mz(context):
|
2020-08-23 14:54:48 +00:00
|
|
|
await context.edit("获取中 . . .")
|
|
|
|
status = False
|
|
|
|
for _ in range (20): #最多重试20次
|
2020-08-24 08:04:52 +00:00
|
|
|
website = random.randint(0, 13)
|
2020-09-02 07:50:01 +00:00
|
|
|
filename = str(random.random()) + ".png"
|
|
|
|
try:
|
|
|
|
if website == 0:
|
|
|
|
img = get("https://mm.52.mk/img")
|
|
|
|
elif website == 1:
|
|
|
|
img = get("https://api.helloworld.la/xiezhen_xinggan.php")
|
|
|
|
elif website == 2:
|
|
|
|
img = get("https://api.66mz8.com/api/rand.tbimg.php")
|
|
|
|
elif website == 3:
|
|
|
|
img = get("https://api.isoyu.com/mm_images.php")
|
|
|
|
elif website == 4:
|
|
|
|
img = get("https://uploadbeta.com/api/pictures/random/?key=%E5%A5%B3")
|
|
|
|
elif website == 5:
|
|
|
|
img = get("https://uploadbeta.com/api/pictures/random/?key=%E5%A6%B9%E5%AD%90")
|
|
|
|
elif website == 6:
|
|
|
|
img = get("https://uploadbeta.com/api/pictures/random/?key=%E6%8E%A8%E5%A5%B3%E9%83%8E")
|
|
|
|
elif website == 7:
|
|
|
|
img = get("https://uploadbeta.com/api/pictures/random/?key=%E7%BE%8E%E5%A5%B3")
|
|
|
|
elif website == 8:
|
|
|
|
img = get("https://api.diskgirl.com/image/api.php?t=xinggan&v=" + str(random.uniform(0, 100)))
|
|
|
|
elif website == 9:
|
|
|
|
img = get("https://api.lyiqk.cn/sexylady")
|
|
|
|
elif website == 10:
|
|
|
|
img = get("https://api.pingping6.com/tools/acg3/index.php")
|
|
|
|
elif website == 11:
|
|
|
|
img = get("https://api.uomg.com/api/rand.img3")
|
|
|
|
elif website == 12:
|
|
|
|
img = get("https://api.diskgirl.com/image/api.php?t=&v=0.9451485087333713")
|
|
|
|
elif website == 13:
|
|
|
|
img = get("https://uploadbeta.com/api/pictures/random/?key=%E6%80%A7%E6%84%9F")
|
|
|
|
if img.status_code == 200:
|
|
|
|
with open(filename, 'wb') as f:
|
|
|
|
await context.edit("上传中 . . .")
|
|
|
|
f.write(img.content)
|
|
|
|
await context.client.send_file(
|
|
|
|
context.chat_id,
|
|
|
|
filename,
|
|
|
|
reply_to=None,
|
|
|
|
caption=None
|
|
|
|
)
|
|
|
|
try:
|
|
|
|
remove(filename)
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
status = True
|
|
|
|
break #成功了就赶紧结束啦!
|
|
|
|
except:
|
|
|
|
continue
|
2020-08-23 14:54:48 +00:00
|
|
|
if not status:
|
|
|
|
await context.edit("出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器(没有妹子看啦!) 。")
|
|
|
|
sleep(2)
|
|
|
|
await context.delete()
|
2020-08-25 14:58:10 +00:00
|
|
|
|
2020-08-25 15:16:16 +00:00
|
|
|
@listener(is_plugin=True, outgoing=True, command="sp",
|
2020-08-25 14:58:10 +00:00
|
|
|
description="随机获取妹子的视频")
|
2020-08-25 15:16:16 +00:00
|
|
|
async def sp(context):
|
2020-08-25 14:58:10 +00:00
|
|
|
await context.edit("获取中 . . .")
|
|
|
|
status = False
|
|
|
|
for _ in range (20): #最多重试20次
|
|
|
|
vid = get("https://mv.52.mk/video.php")
|
2020-09-02 07:50:01 +00:00
|
|
|
filename = str(random.random()) + ".mp4"
|
2020-08-25 14:58:10 +00:00
|
|
|
if vid.status_code == 200:
|
2020-09-02 07:50:01 +00:00
|
|
|
with open(filename, 'wb') as f:
|
|
|
|
await context.edit("上传中 . . .")
|
2020-08-25 14:58:10 +00:00
|
|
|
f.write(vid.content)
|
|
|
|
await context.client.send_file(
|
|
|
|
context.chat_id,
|
2020-09-02 07:50:01 +00:00
|
|
|
filename,
|
2020-08-25 14:58:10 +00:00
|
|
|
reply_to=None,
|
|
|
|
caption=None
|
|
|
|
)
|
|
|
|
try:
|
2020-09-02 07:50:01 +00:00
|
|
|
remove(filename)
|
2020-08-25 14:58:10 +00:00
|
|
|
except:
|
|
|
|
pass
|
|
|
|
status = True
|
|
|
|
break #成功了就赶紧结束啦!
|
|
|
|
|
|
|
|
if not status:
|
|
|
|
await context.edit("出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器(没有妹子视频看啦!) 。")
|
|
|
|
sleep(2)
|
|
|
|
await context.delete()
|