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()



