冬瓜滴小社 头像

消息来源频道

冬瓜滴小社

@ltscxk

频道3,714 位成员公开可见0 人在线

频道主 双向 @chat_dg_bot 群组 @ltsjsq 荔枝不涩涩

成员规模3,714 位成员
在线情况0 人在线
消息总数590 条消息
浏览量总数0 次浏览

在这个频道里搜索消息……

t.me/ltscxk

import requests
import json
import uuid
# Generate a unique identifier (UUID) and append "bywx" to it
uuid_str = str(uuid.uuid4()).replace("-", "") + "bywx"
# Construct the URL for the first HTTP POST request
url = "https://apihk.dspotx.com/api/v1/users/register"
params = {
"version": "5.2.1",
"version_code": "36",
"os": "android",
"os_version": "10",
"vendor": "Xiaomi",
"model": "MI 8 SE",
"app": "mogu",
"channel": "50",
"channel_type": "1",
"udid": uuid_str
}
headers = {
"user-agent": "Dart/2.17 (dart:io)",
"content-type": "application/json; charset=utf-8"
}
# Make the first HTTP POST request for user registration
response = requests.post(url, json={}, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
user_id = int(data["result"]["id"])
token = data["result"]["token"]
# Construct the URL for the second HTTP POST request
url2 = "https://apihk.dspotx.com/api/v1/nodes/acquire"
params2 = {
"version": "5.2.1",
"version_code": "36",
"os": "android",
"os_version": "10",
"vendor": "Xiaomi",
"model": "MI 8 SE",
"app": "mogu",
"channel": "50",
"channel_type": "1",
"udid": uuid_str,
"id": user_id,
"token": token
}
# Make the second HTTP POST request to acquire specific nodes
payload = {"node_id": 40}
response2 = requests.post(url2, json=payload, params=params2, headers=headers)
if response2.status_code == 200:
data2 = response2.json()
ssr = data2["result"]["uri"]
tm = data2["result"]["trialExpiredAt"]
print(ssr + "\n\n" + tm)
else:
print("请求失败:" + str(response2.status_code))
else:
print("请求失败:" + str(response.status_code))