tushare官网以及在线文档http://tushare.org/

安装    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tushare

然后试试看,这个包使用pandas DataFrame数据格式,引用包import tushare as ts

然后ts.get_today_all()可以获取当日所有股票信息

tushare库:免费的python财经数据接口ts.get_hist_data('600848')可以获取对应股票代码的历史数据

tushare库:免费的python财经数据接口

对应数据字典在文档中可以查询到

其他还可以看电影票房、新闻等等,很nice的库

相关文章:

  • 2022-01-15
  • 2021-11-21
  • 2022-02-09
  • 2021-11-04
  • 2022-01-07
  • 2021-10-23
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-09-18
  • 2021-06-25
  • 2022-12-23
  • 2021-08-23
  • 2021-07-14
相关资源
相似解决方案