直接调接口不香吗?
``` python
import requests
url = 'https://webs.bjidex.com/api/dstp/data-asset-serfer/dataProduct/deal/list'
data = {"searchName":"","productType":"","industry":"","viewCode":1,"pageSize":10,"pageNum":8}
headers = {
'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
'Referer' : 'https://webs.bjidex.com/sys-bsc-home/',
'Origin' : 'https://webs.bjidex.com'
}
response = requests.post(url, json=data,headers=headers)
print(response.text)
``` |