2025-12-10 15:42:30 +08:00
|
|
|
import requests
|
|
|
|
|
|
|
|
|
|
cookies = {
|
|
|
|
|
'PHPSESSID': '8e48c4dd-69ef-561c-3082-e20564b88806',
|
|
|
|
|
'ipsb': '3oMlNJzDmbhOQ7wtF96V451PWTxSvKfE',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
headers = {
|
|
|
|
|
'accept': '*/*',
|
|
|
|
|
'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',
|
|
|
|
|
'dnt': '1',
|
|
|
|
|
'pragma': 'no-cache',
|
|
|
|
|
'referer': 'https://ip.sb/',
|
|
|
|
|
'sec-ch-ua': '"Chromium";v="142", "Microsoft Edge";v="142", "Not_A Brand";v="99"',
|
|
|
|
|
'sec-ch-ua-mobile': '?0',
|
|
|
|
|
'sec-ch-ua-platform': '"Windows"',
|
|
|
|
|
'sec-fetch-dest': 'script',
|
|
|
|
|
'sec-fetch-mode': 'no-cors',
|
|
|
|
|
'sec-fetch-site': 'same-site',
|
|
|
|
|
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0',
|
|
|
|
|
# 'cookie': 'PHPSESSID=8e48c4dd-69ef-561c-3082-e20564b88806; ipsb=3oMlNJzDmbhOQ7wtF96V451PWTxSvKfE',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
proxies = {
|
2025-12-11 11:05:02 +08:00
|
|
|
'http': f'http://104.168.59.92:24016',
|
|
|
|
|
'https': f'http://104.168.59.92:24016',
|
2025-12-10 15:42:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response = requests.get('https://ipv4.ip.sb/addrinfo', cookies=cookies, headers=headers, proxies=proxies)
|
|
|
|
|
print(f"{response.json()}")
|
2025-12-08 16:20:22 +08:00
|
|
|
|