[Python] 纯文本查看 复制代码
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Accept-Encoding": "gzip, deflate,zstd",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
"Cookie": "__51vcke__3HukqLVSk25b1pcH=3f24c1f3-a947-507b-84c9-6657251e23d1; __51vuft__3HukqLVSk25b1pcH=1716463071310; check_url=yes; cf_clearance=hpLjMqKtopLsjaJyuwSkrlIrv6pVy1GCX11CFx9tanU-1716479313-1.0.1.1-zsq7iQtjVT5Bt0PSz7BRzrw0kvX1WAMmdfv.7Pi3yOgHBUb2NA5iXdh56a2qITq4ZNGSa0P_UFCdaq2yEOx_eg; check_cookie=yes; PHPSESSID=fe14kceo3f7lvn03nmuq3eti55; __51uvsct__3HukqLVSk25b1pcH=4; __vtins__3HukqLVSk25b1pcH=%7B%22sid%22%3A%20%22a92ca5d2-6af2-52e8-99fb-1c10d250ec74%22%2C%20%22vd%22%3A%207%2C%20%22stt%22%3A%202133548%2C%20%22dr%22%3A%205622%2C%20%22expires%22%3A%201716487865636%2C%20%22ct%22%3A%201716486065636%7D",
"Referer": "https://www.bqzw789.org/146/146133/46486451.html",
"Sec-Ch-Ua": "\"Microsoft Edge\";v=\"123\", \"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"123\"",
"Sec-Ch-Ua-Arch": "\"x86\"",
"Sec-Ch-Ua-Bitness": "\"64\"",
"Sec-Ch-Ua-Full-Version": "\"123.0.2420.97\"",
"Sec-Ch-Ua-Full-Version-List": "\"Microsoft Edge\";v=\"123.0.2420.97\", \"Not:A-Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"123.0.6312.123\"",
"Sec-Ch-Ua-Mobile": "?0",
"Sec-Ch-Ua-Model": "\"\"",
"Sec-Ch-Ua-Platform": "\"Windows\"",
"Sec-Ch-Ua-Platform-Version": "\"15.0.0\"",
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-User": "?1",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0"
}
url = 'https://www.bqzw789.org/ajaxChapter.php'
data ={
"aid": "146133",
"cid": "46486451",
}
response = requests.post(url, data=data, headers=headers)
response.encoding = 'utf-8'
print(response.text)
print(response.json())