import json
import requests

headers = {
    'Host': 'api.xiahong.top',
    # 'ik': 'b326b5062b2f0e69046810717534cb09',
    'xweb_xhr': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 MicroMessenger/6.8.0(0x16080000) NetType/WIFI MiniProgramEnv/Mac MacWechat/WMPF MacWechat/3.8.5(0x13080510)XWEB/1100',
    'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDIwMjU1MTgsIm5iZiI6MTcwMjAyNTUxOCwiZXhwIjoxNzAyMDMyNzE4LCJkYXRhIjp7InVzZXJfaWQiOiIyMzkyNDc3NDAifX0.SGfKqlSL11OxDtx5t2XvYXsxTC0hSR--5QpdOmWPIKU',
    'Content-Type': 'application/json',
    'Accept': '*/*',
    'Sec-Fetch-Site': 'cross-site',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Dest': 'empty',
    'Referer': 'https://servicewechat.com/wxe5389a260a0a4ee2/2/page-frame.html',
    'Accept-Language': 'en-US,en;q=0.9',
}

params = {
    's': 'mobile/Video/getList',
    'cid': '1',
    'page': '11',
    'api_version': '4',
    'appid': 'wxe5389a260a0a4ee2',
    'version': '1.9.1',
    'env_version': 'release',
    'scene': '1089'
}

response = requests.get('https://api.xiahong.top/index.php', headers=headers, params=params)

result = response.json()


print(json.dumps(result, ensure_ascii=False, indent=4))
print(len(result['data']['list']))