全民k歌怎么样领免费鲜花(全民K歌自动签到领花)
刚学pr视频剪辑比较粗糙,大家见谅。
视频链接请点击查看:视频链接
下面是用到的代码:
import requests
'''
-包含邮局120朵,6项签到,每日抽奖及签到7日抽奖
-sckey- Server酱SCKEY
-Cookie- Cookie
'''
sckey = '这里填server酱'
Cookie = 'pgv_pvid=; userlevel=; qrsig=; muid=; openid=; openkey=; opentype=; uid= '
uid = Cookie.split("; ")
t_uUid = ''
for i in uid:
if i.find('uid=') >= 0:
t_uUid = i.split('=')[1]
Url_a = 'https://node.kg.qq.com/webapp/proxy?ns=proto_profile&cmd=profile.getProfile&mapExt=JTdCJTIyZmlsZSUyMiUzQSUyMnByb2ZpbGVfd2ViYXBwSmNlJTIyJTJDJTIyY21kTmFtZSUyMiUzQSUyMlByb2ZpbGVHZXQlMjIlMkMlMjJhcHBpZCUyMiUzQTEwMDA2MjYlMkMlMjJkY2FwaSUyMiUzQSU3QiUyMmludGVyZmFjZUlkJTIyJTNBMjA1MzU5NTk3JTdEJTJDJTIybDVhcGklMjIlM0ElN0IlMjJtb2RpZCUyMiUzQTI5NDAxNyUyQyUyMmNtZCUyMiUzQTI2MjE0NCU3RCUyQyUyMmlwJTIyJTNBJTIyMTAwLjExMy4xNjIuMTc4JTIyJTJDJTIycG9ydCUyMiUzQSUyMjEyNDA2JTIyJTdE&t_uUid=' t_uUid
Url_b = 'https://node.kg.qq.com/webapp/proxy?ns=KG_TASK&cmd=task.getLottery&ns_inbuf=&mapExt=JTdCJTIyZmlsZSUyMiUzQSUyMnRhc2tKY2UlMjIlMkMlMjJjbWROYW1lJTIyJTNBJTIyTG90dGVyeVJlcSUyMiUyQyUyMnduc0NvbmZpZyUyMiUzQSU3QiUyMmFwcGlkJTIyJTNBMTAwMDU1NyU3RCUyQyUyMmw1YXBpJTIyJTNBJTdCJTIybW9kaWQlMjIlM0E1MDM5MzclMkMlMjJjbWQlMjIlM0E1ODk4MjQlN0QlN0Q=&t_uid=' t_uUid '&t_iShowEntry=1&t_type='
t_type = ['1','2']
Url_e = 'https://node.kg.qq.com/webapp/proxy?ns=KG_TASK&cmd=task.getLottery&mapExt=JTdCJTIyZmlsZSUyMiUzQSUyMnRhc2tKY2UlMjIlMkMlMjJjbWROYW1lJTIyJTNBJTIyTG90dGVyeVJlcSUyMiUyQyUyMmw1YXBpJTIyJTNBJTdCJTIybW9kaWQlMjIlM0E1MDM5MzclMkMlMjJjbWQlMjIlM0E1ODk4MjQlN0QlMkMlMjJsNWFwaV9leHAxJTIyJTNBJTdCJTIybW9kaWQlMjIlM0E4MTcwODklMkMlMjJjbWQlMjIlM0EzODAxMDg4JTdEJTdE&t_uid=' t_uUid '&t_type=103'
Url_c = 'https://node.kg.qq.com/webapp/proxy?ns=KG_TASK&cmd=task.signinGetAward&mapExt=JTdCJTIyZmlsZSUyMiUzQSUyMnRhc2tKY2UlMjIlMkMlMjJjbWROYW1lJTIyJTNBJTIyR2V0U2lnbkluQXdhcmRSZXElMjIlMkMlMjJ3bnNDb25maWclMjIlM0ElN0IlMjJhcHBpZCUyMiUzQTEwMDA2MjYlN0QlMkMlMjJsNWFwaSUyMiUzQSU3QiUyMm1vZGlkJTIyJTNBNTAzOTM3JTJDJTIyY21kJTIyJTNBNTg5ODI0JTdEJTdE&t_uid=' t_uUid '&t_iShowEntry='
t_iShowEntry =['1','2','4','16','128','512']
Url_d = 'https://node.kg.qq.com/webapp/proxy?ns=KG_TASK&cmd=task.getLottery&mapExt=JTdCJTIyZmlsZSUyMiUzQSUyMnRhc2tKY2UlMjIlMkMlMjJjbWROYW1lJTIyJTNBJTIyTG90dGVyeVJlcSUyMiUyQyUyMnduc0NvbmZpZyUyMiUzQSU3QiUyMmFwcGlkJTIyJTNBMTAwMDU1NyU3RCUyQyUyMmw1YXBpJTIyJTNBJTdCJTIybW9kaWQlMjIlM0E1MDM5MzclMkMlMjJjbWQlMjIlM0E1ODk4MjQlN0QlN0Q&t_uid=' t_uUid '&t_iShowEntry=4&t_type=104'
Url_1 = 'https://node.kg.qq.com/webapp/proxy?ns=proto_music_station&cmd=message.batch_get_music_cards&mapExt=JTdCJTIyY21kTmFtZSUyMiUzQSUyMkdldEJhdGNoTXVzaWNDYXJkc1JlcSUyMiUyQyUyMmZpbGUlMjIlM0ElMjJwcm90b19tdXNpY19zdGF0aW9uSmNlJTIyJTJDJTIyd25zRGlzcGF0Y2hlciUyMiUzQXRydWUlN0Q&t_uUid=' t_uUid '&g_tk_openkey='
Url_2 = 'https://node.kg.qq.com/webapp/proxy?t_stReward:object={"uInteractiveType":1,"uRewardType":0,"uFlowerNum":15}&ns=proto_music_station&cmd=message.get_reward&mapExt=JTdCJTIyY21kTmFtZSUyMiUzQSUyMkdldFJld2FyZFJlcSUyMiUyQyUyMmZpbGUlMjIlM0ElMjJwcm90b19tdXNpY19zdGF0aW9uSmNlJTIyJTJDJTIyd25zRGlzcGF0Y2hlciUyMiUzQXRydWUlN0Q&t_uUid=' t_uUid '&t_strUgcId='
Url_3 = 'https://node.kg.qq.com/webapp/proxy?t_stReward:object={"uInteractiveType":0,"uRewardType":0,"uFlowerNum":10}&ns=proto_music_station&cmd=message.get_reward&mapExt=JTdCJTIyY21kTmFtZSUyMiUzQSUyMkdldFJld2FyZFJlcSUyMiUyQyUyMmZpbGUlMjIlM0ElMjJwcm90b19tdXNpY19zdGF0aW9uSmNlJTIyJTJDJTIyd25zRGlzcGF0Y2hlciUyMiUzQXRydWUlN0Q&t_uUid=' t_uUid '&t_strUgcId='
def run():
try:
res_1 = requests.get(Url_a, headers={'Cookie': Cookie})
num_a = res_1.json()['data']['profile.getProfile']['uFlowerNum']
for index, T_iShowEntry in enumerate(t_iShowEntry):
res_b = requests.get(Url_c T_iShowEntry, headers={'Cookie': Cookie})
for index, T_type in enumerate(t_type):
res_a = requests.get(Url_b T_type, headers={'Cookie': Cookie})
for g_tk_openkey in range(16):
res_2 = requests.get(Url_1 str(g_tk_openkey), headers={'Cookie': Cookie})
vctMusicCards = res_2.json()['data']['message.batch_get_music_cards']['vctMusicCards']
List = sorted(vctMusicCards,key=lambda x: x['stReward']['uFlowerNum'],reverse=True)[0]
strUgcId = List['strUgcId']
strKey = List['strKey']
Url = strUgcId '&t_strKey=' strKey
if List['stReward']['uFlowerNum'] > 10:
res_3 = requests.get(Url_2 Url, headers={'Cookie': Cookie})
else:
if List['stReward']['uFlowerNum'] > 1:
res_3 = requests.get(Url_3 Url, headers={'Cookie': Cookie})
res_f = requests.get(Url_d, headers={'Cookie': Cookie})
res_d = requests.get(Url_e, headers={'Cookie': Cookie})
res_4 = requests.get(Url_a, headers={'Cookie': Cookie})
num_b = res_4.json()['data']['profile.getProfile']['uFlowerNum']
num_c = int(num_b)-int(num_a)
if num_c == 0:
num = '请不要重复领取哦.....当前账户为' str(num_b) '朵鲜花!'
else:
num = '本次成功领取' str(num_c) '朵鲜花!'
except:
num = 'Cookie效验失败'
requests.get('https://sc.ftqq.com/' sckey '.send?text=全民K歌签到通知&desp=' num)
print(num)
def main_handler(event, context):
run()
图文教程
第一步:
打开全民K歌:https://kg.qq.com/index-pc.html和腾讯云:https://cloud.tencent.com/
第二步:
登录获取全民K歌cookie
第一张图
第二张图
第三步:
去腾讯云函数
第三张图
第四张图
第五张图
第六张图
点击保存,然后再进入函数界面点击测试,添加server酱的sckey测试完之后会给你微信推送
第四步:
创建触发,就是每天让他定时自动签到
第七张图
第八张图
到这里就结束了,等着每天自动领花吧!
更多精彩内容请查看主页或点击下方查看更多访问博客!
,免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com