新浪实时数据读取
新浪财经期货数据读取python.
importrequests
importsys
future_code='M1809'
url_str=('http://stock2.finance.sina.com.cn/futures/api/json.php/IndexService.getInnerFuturesDailyKLine?symbol='+
future_code)
r=requests.get(url_str)
r_json=r.json()
r_lists=list(r_json)
print('future_code,date,open,high,lo
下载地址
用户评论
抄一篇文章,骗分,不要下!