25 lines
901 B
Python
25 lines
901 B
Python
import requests
|
|
|
|
|
|
headers = {
|
|
"Host": "www.parfresh.com",
|
|
"authToken": "",
|
|
"Accept": "application/json",
|
|
"xweb_xhr": "1",
|
|
"uuid": "b303ba60-6323-4a65-9e12-f067ba723dea",
|
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090c11)XWEB/11275",
|
|
"Content-Type": "application/json",
|
|
"Sec-Fetch-Site": "cross-site",
|
|
"Sec-Fetch-Mode": "cors",
|
|
"Sec-Fetch-Dest": "empty",
|
|
"Referer": "https://servicewechat.com/wx2b90b97b6821b332/19/page-frame.html",
|
|
"Accept-Language": "zh-CN,zh;q=0.9"
|
|
}
|
|
url = "https://www.parfresh.com/api/goods/goodsInfo"
|
|
params = {
|
|
"goods_id": "5774"
|
|
}
|
|
response = requests.get(url, headers=headers, params=params)
|
|
|
|
print(response.text)
|
|
print(response) |