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'])