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 32 33 34 35 36 37 38 39
| import requests
authorization=""
num="24070568"
url = "https://newmapi.7mate.cn/api/in_fences"
headers = { "Host": "newmapi.7mate.cn", "Connection": "keep-alive", "Accept": "application/vnd.ws.v1+json", "Client": "Wechat_MiniAPP", "Phone-Model": "PJE110", "Phone-Brand": "OnePlus", "Phone-System": "Android", "Phone-System-Version": "Android 14", "App-Version": "1.3.89", "Authorization": authorization, "content-type": "application/json", "charset": "utf-8", "Referer": "https://servicewechat.com/wx9a6a1a8407b04c5d/237/page-frame.html", "User-Agent": ("Mozilla/5.0 (Linux; Android 14; PJE110 Build/TP1A.220905.001; wv) " "AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.103 " "Mobile Safari/537.36 XWEB/1300125 MMWEBSDK/20240801 MMWEBID/1127 " "MicroMessenger/8.0.51.2720(0x28003334) WeChat/arm64 Weixin NetType/5G " "Language/zh_CN ABI/arm64 MiniProgramEnv/android"), "Accept-Encoding": "gzip, deflate, br" } params = { "points": "120.50442231328,36.165378359899|120.508037109375,36.160160047743055" }
response = requests.get(url, headers=headers, params=params)
print("Status Code:", response.status_code) print("Response Text:", response.text)
|