微博超话签到★百度贴吧签到★小米运动刷步数★恩山签到★雨云签到白嫖服务器★小茅预约★丽宝乐园小程序签到★天翼云盘签到★腾讯视频签到(会员领成长值)★阿里云盘签到★GW树洞机场签到★富贵论坛签到★一点万向签到打卡★什么值得买达人和关键词取消关注★STLXZ签到★PT站签到★帆软签到+摇摇乐★千图网签到★星空代理签到★什么值得买签到★值得买每日抽奖★小米社区签到★逑美在线app签到和抽卡★ddnsto自动续费七天★爱奇艺签到刷时长★双色球预测(娱乐)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

#!/usr/bin/python3
# -- coding: utf-8 --
# @Time : 2023/6/30 10:23
# -------------------------------
# cron "0 0 6,8,20 * * *" script-path=xxx.py,tag=匹配cron用
# const $ = new Env('雨云签到');
import json,requests,os,time
##变量雨云账号密码 注册地址https://www.rainyun.com/NTY1NzY=_
yyusername=os.getenv("yyusername")
yypassword=os.getenv("yypassword")
#登录
def login_sign():
session = requests.session()
resp1 = session.post('https://api.v2.rainyun.com/user/login',headers={"Content-Type": "application/json"}, data=json.dumps({"field": f"{yyusername}", "password": f"{yypassword}"}))
if resp1.text.find("200") > -1:
print("登录成功")
x_csrf_token = resp1.cookies.get_dict()['X-CSRF-Token']
# print(x_csrf_token)
else:
print(f"登录失败,响应信息:{resp1.text}")
headers= {
'x-csrf-token': x_csrf_token,
}
resp = session.post('https://api.v2.rainyun.com/user/reward/tasks',headers=headers,data=json.dumps({"task_name": "每日签到","verifyCode": ""}))
print('开始签到:签到结果 '+json.loads(resp.text))
print('尝试20次服务器兑换!')
for i in range(20):
respget = session.post('https://api.v2.rainyun.com/user/reward/items',headers=headers,data='{"item_id":107}')
print(f'{i+1}次尝试兑换云服务器 '+json.loads(respget.text)['message'])
time.sleep(5)
if __name__ == '__main__':
login_sign()