Files
to_session/sahara/获取签名信息.py
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

37 lines
1.5 KiB
Python

import requests
cookies = {
'_ga': 'GA1.1.816694338.1750485616',
'_ga_8JY051HV2D': 'GS2.1.s1750490288$o2$g0$t1750490299$j49$l0$h0',
}
headers = {
'accept': 'application/json, text/plain, */*',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
'cache-control': 'no-cache',
'content-type': 'application/json',
'dnt': '1',
'origin': 'https://okx.saharaai.com',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://okx.saharaai.com/submit/1',
'sec-ch-ua': '"Microsoft Edge";v="137", "Chromium";v="137", "Not/A)Brand";v="24"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0',
# 'cookie': '_ga=GA1.1.816694338.1750485616; _ga_8JY051HV2D=GS2.1.s1750490288$o2$g0$t1750490299$j49$l0$h0',
}
json_data = {
'address': '0x96Ada9a1eee479D64d3385b4832e174683eA00A8',
}
response = requests.post('https://okx.saharaai.com/api/GenerateMessage', cookies=cookies, headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{"address":"0x96Ada9a1eee479D64d3385b4832e174683eA00A8"}'
#response = requests.post('https://okx.saharaai.com/api/GenerateMessage', cookies=cookies, headers=headers, data=data)