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

1、下载并按照HTTP Debugger

相关信息
HTTP Debugger Professional 9.0.9抓包工具汉化破解版

软件简介HTTP Debugger Professional 9.0.9是一款专业的 http嗅探器拦截抓包工具,能够自动分析所有的HTTP通信数据,查看和分析 HTTP 和 HTTPS 协议的 web 浏览器或…

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

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

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

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

4、将t复制到代码中:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import time
import requests
 
# HTTP Debugger 抓包获取
= 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:
            = 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、最后运行就可以了。


爱搜源码 » 微信小程序羊了个羊python全自动刷榜脚本方法

发表评论

发表评论