Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想要一个领取LOL每日低保的功能,py代码给你参考,抓的ck每天都会失效。 #88

Open
1273294133 opened this issue Jan 10, 2024 · 0 comments

Comments

@1273294133
Copy link

import requests,time,re,json

LOLServerSelect = [
{'t':"艾欧尼亚 电信",'v':"1", 'status':"1"},
{'t':"比尔吉沃特 网通",'v':"2", 'status':"1"},
{'t':"祖安 电信",'v':"3", 'status':"1"},
{'t':"诺克萨斯 电信",'v':"4", 'status':"1"},
{'t': "班德尔城 电信", 'v': "5", 'status': "1"},
{'t':"德玛西亚 网通",'v':"6", 'status':"1"},
{'t':"皮尔特沃夫 电信",'v':"7", 'status':"1"},
{'t':"战争学院 电信",'v':"8", 'status':"1"},
{'t':"弗雷尔卓德 网通",'v':"9", 'status':"1"},
{'t':"巨神峰 电信",'v':"10", 'status':"1"},
{'t':"雷瑟守备 电信",'v':"11", 'status':"1"},
{'t':"无畏先锋 网通",'v':"12", 'status':"1"},
{'t':"裁决之地 电信",'v':"13", 'status':"1"},
{'t':"黑色玫瑰 电信",'v':"14", 'status':"1"},
{'t':"暗影岛 电信",'v':"15", 'status':"1"},
{'t':"恕瑞玛 网通", 'v': "16", 'status': "1"},
{'t':"钢铁烈阳 电信",'v':"17", 'status':"1"},
{'t':"水晶之痕 电信",'v':"18", 'status':"1"},
{'t':"均衡教派 网通", 'v': "19", 'status': "1"},
{'t':"扭曲丛林 网通", 'v': "20", 'status': "1"},
{'t':"教育网专区",'v':"21", 'status':"1"},
{'t':"影流 电信",'v':"22", 'status':"1"},
{'t':"守望之海 电信",'v':"23", 'status':"1"},
{'t':"征服之海 电信",'v':"24", 'status':"1"},
{'t':"卡拉曼达 电信",'v':"25", 'status':"1"},
{'t':"巨龙之巢 网通", 'v': "26", 'status': "1"},
{'t':"皮城警备 电信",'v':"27", 'status':"1"},
{'t':"男爵领域 全网络",'v':"30", 'status':"1"}]

def get_receive(cookie):
for id,cook in enumerate(cookie):
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36 qifei',
'cookie': cook
}
print(f"第{id+1}个账号 {re.findall('([1-9][0-9]{4,14})',cook)[0]} \n")
for i in LOLServerSelect:
#print(i['v'])
url = f"https://apps.game.qq.com/daoju/igw/main?_service=buy.plug.svr.sysc_ext&paytype=8&iActionId=22565&propid=338943&buyNum=1&_app_id=1006&_plug_id=72007&_biz_code=lol&areaid={i['v']}"
res = requests.get(url,headers=headers).json()
print(res)
if 'act_amount' in res:
print(f"{i['t']} {json.loads(res['msg'])[0]['sMsg']}")
else:
print(f"{i['t']} {res['msg']}")
#print(res)

        time.sleep(1)
    print()

if name == 'main':
cookie = ['skey=@xxxxxx;uin=xxxxxxx','skey=@xxxxxx;uin=xxxxxxx'] #自己修改此处
get_receive(cookie)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant