Skip to content

Instantly share code, notes, and snippets.

@pandalid
Created September 18, 2022 08:04
Show Gist options
  • Save pandalid/b48913b422bcb06098677d0f83660c10 to your computer and use it in GitHub Desktop.
Save pandalid/b48913b422bcb06098677d0f83660c10 to your computer and use it in GitHub Desktop.
羊了个羊科技通关
# coding:utf-8
"""
# @Time : 2022/9/18 下午3:37
# @File : ylgy.py
# @Function:
"""
import requests
uid = '你的UID' #你的UID
time = '108' #期望的时间
# step1
index_url = "https://cat-match.easygame2021.com/sheep/v1/game/user_info?uid=" + uid + "&t=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTQzMTIxMzUsIm5iZiI6MTY2MzIwOTkzNSwiaWF0IjoxNjYzMjA4MTM1LCJqdGkiOiJDTTpjYXRfbWF0Y2g6bHQxMjM0NTYiLCJvcGVuX2lkIjoiIiwidWlkIjoxMzIwNDM5NiwiZGVidWciOiIiLCJsYW5nIjoiIn0.VxvTLcrZjtdNFxvb_MivZlLLrrar3Ojl8Kh8gCG-u3I"
res_data_index = requests.get(url=index_url).json()
wx_open_id = res_data_index['data']['wx_open_id']
wx_header = {'Content-Type': 'application/x-www-form-urlencoded'}
login_url = "https://cat-match.easygame2021.com/sheep/v1/user/login_tourist"
res_data = requests.post(url=login_url, headers=wx_header, data={'uuid': wx_open_id}).json()
token = res_data['data']['token']
print("已获取到token:", token)
# step2
crack_url = " https://cat-match.easygame2021.com/sheep/v1/game/game_over?t=" + token + "&rank_score=1&rank_state=1&rank_time=" + time + "&rank_role=1&skin=1"
requests.get(crack_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment