微信小程序羊了个羊python全自动刷榜脚本方法

分类:建站教程 时间:2024-12-22 18:30 浏览:0 评论:0
0

微信小程序羊了个羊python全自动刷榜脚本方法,本教程适用于微信小程序羊了个羊,其他平台如抖音,应该也行吧,没测试。

1、下载并按照HTTP Debuggerhttps://www.zztuku.com/detail-13104.html

2、打开HTTP Debugger和微信,在微信上打开“羊了个羊”小程序


微信小程序羊了个羊python全自动刷榜脚本方法


3、随便点一个包含“cat-match”的URL,获取t值


微信小程序羊了个羊python全自动刷榜脚本方法


4、将t复制到代码中:

import time
import requests
  
# HTTP Debugger 抓包获取
t = input('>> 请输入HTTP Debugger抓包获取的t值:').strip()
loop = input('>> 请输入刷多少轮(默认99):').strip() or '99'
loop = int(loop)
  
rank_time = 12
url = "https://cat-match.easygame2021.com/sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time={}&rank_role=1&skin=1".format(str(rank_time))
headers = {
    'User-Agent': "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.28(0x18001c25) NetType/WIFI Language/en",
    "t": t,
    'Host': 'cat-match.easygame2021.com',
    'Accept': 'gzip,compress,br,deflate',
    'Connection': 'keep-alive',
    'Accept-Encoding': 'gzip, deflate, br',
    'Referer': 'https://servicewechat.com/wx141bfb9b73c970a9/15/page-frame.html',
}
  
if __name__ == '__main__':
    while loop > 0:
        try:
            r = requests.get(url = url, headers = headers, verify=False, timeout=10).json()
            print(r)
        except Exception as e:
            print('>> 出现异常: ' + str(e))
        loop -= 1
        time.sleep(2)
    print('>> 运行结束')
    input('>> 输入任意键退出...')


5、最后运行就可以了。


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 微信小程序羊了个羊python全自动刷榜脚本方法

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }