微博超话签到★百度贴吧签到★小米运动刷步数★恩山签到★雨云签到白嫖服务器★小茅预约★丽宝乐园小程序签到★天翼云盘签到★腾讯视频签到(会员领成长值)★阿里云盘签到★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.

58 lines
1.8 KiB

#!/usr/bin/python3
# -- coding: utf-8 --
# -------------------------------
# @Author : github@wd210010 https://github.com/wd210010/just_for_happy
# @Time : 2023/3/27 13:23
# -------------------------------
# cron "30 5 * * *" script-path=xxx.py,tag=匹配cron用
# const $ = new Env('IKuuu机场签到帐号版')
11 months ago
import requests,re
import requests
import os
# export ikuuu='邮箱&密码' 多号#号隔开
def main():
r = 1
oy = ql_env()
print("共找到" + str(len(oy)) + "个账号")
for i in oy:
print("------------正在执行第" + str(r) + "个账号----------------")
email = i.split('&')[0]
passwd = i.split('&')[1]
sign_in(email, passwd)
r += 1
def sign_in(email, passwd):
try:
body = {"email" : email,"passwd" : passwd,}
headers = {'user-agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'}
11 months ago
res = requests.get('https://ikuuu.club/', headers=headers)
url = re.findall('target="_blank">(.*?)</a>', res.text, re.S)
for i in range(len(url)):
resp = requests.session()
resp.post(f'{url[i]}auth/login', headers=headers, data=body)
ss = resp.post(f'{url[i]}user/checkin').json()
# print(ss)
if 'msg' in ss:
print(ss['msg'])
break
except:
print('请检查帐号配置是否错误')
def ql_env():
if "ikuuu" in os.environ:
token_list = os.environ['ikuuu'].split('#')
if len(token_list) > 0:
return token_list
else:
print("ikuuu变量未启用")
sys.exit(1)
else:
print("未添加ikuuu变量")
sys.exit(0)
if __name__ == '__main__':
main()