akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
9.31k stars 1.88k forks source link

AKShare ak.stock_hk_profit_forecast_et接口问题报告 #4396

Closed eshion closed 9 months ago

eshion commented 9 months ago

ak.stock_hk_profit_forecast_et(symbol='00856',indicator="盈利预测概览")

接口包错: 00856 KeyError '纯利/亏损' 猜测是列名有这些的时候会包错:

纯利/(亏损)(百万港元) | 每股盈利/(亏损) (港仙) | 每股派息(港仙)

https://www.etnet.com.hk/www/sc/stocks/realtime/quote_profit.php?code=00856

albertandking commented 9 months ago

ak.stock_hk_profit_forecast_et(symbol='00856',indicator="盈利预测概览")

接口包错: 00856 KeyError '纯利/亏损' 猜测是列名有这些的时候会包错:

纯利/(亏损)(百万港元) | 每股盈利/(亏损) (港仙) | 每股派息(港仙)

https://www.etnet.com.hk/www/sc/stocks/realtime/quote_profit.php?code=00856

已修复该问题,升级到 AKShare 1.12.15 使用