import time
import requests
# 建立会话
session = requests.session()
login_url = "https://ikuuu.pw/auth/login"
sign_in_url = "https://ikuuu.pw/user/checkin"
headers = {
"origin": "https://ikuuu.pw",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"
}
data = {
'host': 'ikuuu.pw',
'email': '<输入邮箱>',
'passwd': '<输入密码>',
'code': '',
}
# 登录
login_r = session.post(url=login_url, headers=headers, data=data)
login_result = login_r.json()
print(login_result['msg'])
# 签到
sign_in_r = session.post(url=sign_in_url, headers=headers)
sign_in_result = sign_in_r.json()
print(sign_in_result['msg'])
版权归属:
Administrator
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区