35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
import requests
|
|
|
|
headers = {
|
|
'accept': 'application/json',
|
|
'accept-language': 'zh-CN,zh;q=0.9',
|
|
'authorization': 'Bearer a8e6801d-0060-4288-a1a8-7a8003996871',
|
|
'cache-control': 'no-cache',
|
|
'if-modified-since': '0',
|
|
'origin': 'https://www.grubhub.com',
|
|
'perimeter-x': 'eyJ1IjoiOTIwNWMzOTAtZmVlMi0xMWVmLTljZTEtYzU0ODE2NWJhZGM5IiwidiI6IjhmNWZmZmMxLWZlZTItMTFlZi04OGY4LTNlNmE5YjdjNmY1NSIsInQiOjE3NDE3NDM5NTEwNzcsImgiOiI2Nzk1NDMzM2IwZTJmODk1NjJjOTM2ZDdmYjczYzM0MmM5NjViYzhlY2Y0MDg1ZDljOTY5NDA0N2Y5ODFkOWFiIn0=',
|
|
'pragma': 'no-cache',
|
|
'priority': 'u=1, i',
|
|
'referer': 'https://www.grubhub.com/',
|
|
'sec-ch-ua': '"Chromium";v="134", "Not:A-Brand";v="24", "Google Chrome";v="134"',
|
|
'sec-ch-ua-mobile': '?0',
|
|
'sec-ch-ua-platform': '"Windows"',
|
|
'sec-fetch-dest': 'empty',
|
|
'sec-fetch-mode': 'cors',
|
|
'sec-fetch-site': 'same-site',
|
|
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36',
|
|
}
|
|
|
|
params = {
|
|
'time': '1741743544922',
|
|
'hideUnavailableMenuItems': 'true',
|
|
'orderType': 'standard',
|
|
'version': '4',
|
|
}
|
|
|
|
response = requests.get(
|
|
'https://api-gtm.grubhub.com/restaurants/10316176/menu_items/295249416128',
|
|
params=params,
|
|
headers=headers,
|
|
)
|
|
print(response.json()) |