这个网址F12查出来post怎么用python爬XHR中数据内容打印出来

 

 

把F12查出来网址URL转网页打开显示null,这个怎么用python 爬?难道url有错???拜托各位高手帮忙,小弟10分感谢!!!

import requests

data = {
    "pid": 2521,
    "areaid": 14,
    "start": "2021-05-30",
    "end": "2021-06-30",
}

res = requests.get('http://www.buyplas.com/info/hqajax', data=data).json()

print(res)

img

img

我试了下都可以

response = requests.post(url, headers=headers, data=data)

print(response.status_code)
print(response.json())

img