"""
@author: luojunhui
"""
import json

import requests

url = "https://tophub.today/do"

data = {
    "p": 1,
    "day": "2025-02-3",
    "nodeid": "5952",
    "t": "itemsbydate",
    "c": "node"
}

headers = {
    'accept': 'application/json, text/javascript, */*; q=0.01',
    'accept-language': 'zh,zh-CN;q=0.9',
    'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'origin': 'https://tophub.today',
    'priority': 'u=1, i',
    'cookie': 'itc_center_user=687fMUyII7NF3Z7BXajouKHhRuaQ0naC1NPNVN9cTdtkjxZff0O0ryw5tnK7xCg9CVsqPY4q%2BfMhkcamxx8F1ZQUHZJbuGhjYM4%2FAiDyXpQTTA;',
    'referer': 'https://tophub.today/n/x9ozmmYeXb',
    'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"macOS"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36',
    'x-requested-with': 'XMLHttpRequest'
}

response = requests.request("POST", url, headers=headers, data=data)

response_json = response.json()

print(json.dumps(response_json, indent=4, ensure_ascii=False))