来自一个老板的平台支持~
群里已经有不少小伙伴领到了~
持续发展公益~
从你我做起~
搞就完了~
自动兑换会员 - 单线程
群友贡献单线程自动兑换会员脚本 py写的
import requests COOKIE = "Cookie" KaMiList = [ "AW2NTAYS2CYZYYS", "BPUINMUCBESWUXR", ] qq = 1838416130 # ********** 以下为主程序 ********** headers = { "Host": "km.112.cx", "Connection": "keep-alive", "Accept": "application/json, text/javascript, */*; q=0.01", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "Origin": "http://km.112.cx", "Cookie": COOKIE } def get_qq_info(qq): url = "http://km.112.cx/index/index/querydays.html" payload = { "uin": qq } response = requests.request("POST", url, headers=headers, data=payload) return response.json() def make_qq_svip(qq, svip): url = "http://km.112.cx/index/index/openpkt.html" payload = { "uin": qq, "card": svip } response = requests.request("POST", url, headers=headers, data=payload) return response.json() print("开始执行") for i in KaMiList: print("开始兑换:" + i) qq_info = get_qq_info(qq) print("QQ信息:" + str(qq_info)) print("当前已兑换天数" + qq_info["days"]) svip_info = make_qq_svip(qq, i) if svip_info["code"] == 1: print("兑换成功") print("兑换结果:" + svip_info["msg"]) print("卡密:", i, "执行完毕") print("----------------------------------")
自动领会员 - 多线程
import json import requests COOKIE = "" KaMiList= [ "", "", ] qq = 11001 # ********** 以下为主程序 ********** Done_list = [] headers = { "Host": "km.112.cx", "Connection": "keep-alive", "Accept": "application/json, text/javascript, */*; q=0.01", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "Origin": "http://km.112.cx", "Cookie": COOKIE } def get_qq_info(qq): url = "http://km.112.cx/index/index/querydays.html" payload = { "uin": qq } response = requests.request("POST", url, headers=headers, data=payload) try: return response.json() except json.decoder.JSONDecodeError as e: return make_qq_svip(qq) def make_qq_svip(qq, svip): url = "http://km.112.cx/index/index/openpkt.html" payload = { "uin": qq, "card": svip } response = requests.request("POST", url, headers=headers, data=payload) try: return response.json() except json.decoder.JSONDecodeError as e: return make_qq_svip(qq, svip) print("开始执行") def run(): for i in KaMiList: if i in Done_list: continue Done_list.append(i) print("开始兑换:" + i) svip_info = make_qq_svip(qq, i) if svip_info["code"] == 1: print("兑换成功") print("兑换结果:" + svip_info["msg"]) print("卡密:", i, "执行完毕") print("----------------------------------") if __name__ == '__main__': import threading import time qq_info = get_qq_info(qq) print("QQ信息:" + str(qq_info)) print("当前已兑换天数" + qq_info["days"]) for i in range(10): t = threading.Thread(target=run) t.start() time.sleep(0.1) qq_info = get_qq_info(qq) print("QQ信息:" + str(qq_info)) print("当前已兑换天数" + qq_info["days"])