37,719
社区成员
发帖
与我相关
我的任务
分享
import requests
ses = requests.Session()
headers = {
'Host':'www.mfcteda.com',
'Referer':'http://www.mfcteda.com/product/frame.jsp?fundCode=162201',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36',
'X-Requested-With':'XMLHttpRequest'}
url = 'http://www.mfcteda.com/product/fundchar.jsp?'
data = {'fundCode':'162201'}
req = ses.get(url,headers=headers,params=data)
print(req)