获取东方财富网数据
介绍
本项目是一个获取东方财富网数据的Python库,目前支持的数据有:
- 主要财务指标
- 资产负债表
- 利润表
- 股票实际控制人
安装
pip install pyeastmoney
导入Python包使用
获得实际控制人
from eastmoney.f10 import shareholder_research
shareholder = shareholder_research(code="SH600161")
print(shareholder)
脚本
提供了两个脚本,可以直接使用:
-
download_lrb.py
下载利润表数据 -
download_zcfzb.py
下载资产负债表数据