pip install beautifulsoup4
pip install requests
pip install lxml
pip install pandas
pip install tushare
import tushare as ts
# http://tushare.org/
# , end='2018-04-19'
code = '002460'
e = ts.get_hist_data(code, start='2018-01-01')
file = open(code + ".txt", 'w')
msg = file.write(str(e))
file.close()
热门评论
import tushare as ts
import pandas
pandas.set_option('max_rows', 10000)
# pandas.set_option('max_columns', 10000)
df = ts.get_sina_dd('002252', date='2018-12-25', vol=1000)
print(df)