英文:
Is there a way around the yfinance Ticker method returning that I'm not authorized?
问题
yfinance.Ticker(版本0.2.22)在过去的两个月中一直运行良好:
hndl = yf.Ticker(symb)
info = hndl.info
今天立即失败 - 返回:
HTTPError: 401 客户端错误:未经授权的URL:https://query2.finance.yahoo.com/v10/finance/quoteSummary/AAGIY?modules=summaryProfile%2CfinancialData%2CquoteType%2CdefaultKeyStatistics%2CassetProfile%2CsummaryDetail&ssl=true
链接的页面显示:
我注意到这是多年来一直存在的问题。是否有预期的解决方案?或者,最好探索获取市场数据的替代方法?
TIA
英文:
yfinance.Ticker (version 0.2.22) was working for my well for the past 2 months:
hndl = yf.Ticker(symb)
info = hndl.info
Today it fails immediately - returning:
HTTPError: 401 Client Error: Unauthorized for url: https://query2.finance.yahoo.com/v10/finance/quoteSummary/AAGIY?modules=summaryProfile%2CfinancialData%2CquoteType%2CdefaultKeyStatistics%2CassetProfile%2CsummaryDetail&ssl=true
Linked page shows:
I note that this has been a recurrent problem over the years. Is there anticipated to be a solution? Or, better to explore alternative ways of getting market data?
TIA
答案1
得分: 2
尝试升级yfinance:pip install --upgrade yfinance
英文:
Try upgrading yfinance: pip install --upgrade yfinance
答案2
得分: 1
这里是为了科学、研究和发现。yfinance最近一定又改了什么,以阻碍我们。
英文:
here for the science, research, and discovery. yfinance must have changed something recently again to hinder us.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论