本帖最后由 刘涛 于 2022-3-31 14:04 编辑
[Python] 纯文本查看 复制代码 headres = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36',
'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.9'
}
url = 'https://tanghe.dxhmt.cn/api/sublarticle/mergeListNew'
data = {'page':1,'size':20,'pageid':'625d40a45fe54ce899ab264314c6e2'}
rep = requests.post(url=url,data=data,headers=headres)
print(rep.text)
大概就是这样,自己改改请求头和参数 |