爬虫问题(模拟请求不回应?)

我用HttpCanary在小程序中抓到一个包,HttpCanary中可以重放

但是我自己写python却无法模拟

(由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接失败)
图片说明图片说明图片说明

这是我写的python程序

import requests
headers={
    'charset':'utf-8',
    'Accept-Encoding':'gzip',
    'referer':'https://servicewechat.com/wxfafa4e4283b96e78/7/page-frame.html',
    'cookie':'',
    'content-type':'application/json;text/plain;*/*',
    'User-Agent':'Mozilla/5.0 (Linux; Android 9; Redmi Note 7 Build/PKQ1.180904.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 MicroMessenger/7.0.6.1460(0x27000634) Process/appbrand0 NetType/4G Language/zh_CN',
    'Host':'wechat.zhifeishengwu.com',
    'Connection':'Keep-Alive'
}

r=requests.get('https://wechat.zhifeishengwu.com/wx/HandlerSubscribe.ashx?act=Detail&id=72',headers=headers)
print(r.json())
# HTTPSConnectionPool(host='wechat.zhifeishengwu.com', port=443): Max retries exceeded with url: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

看下是不是https验证的问题和文字编码的问题

https://www.cnblogs.com/ljfight/p/9577783.html

你的源码正常的,我试了一下有数据返回和你的抓包数据一样,看是不是环境不一样。你这是抓的什么APP的包。

你这是什么APP,能交流一下不?