tushare
import ssl import urllib2 import json import demjson import tushare as ts import random i=random.randint(0,100)%2 token=['0','1'] ts.set_token(token[i] pro = ts.pro_api() df = pro.daily(ts_code='002439.SZ', end_date='20190308') print df
http://tushare.org/
https://tushare.pro/