According to Grok:
The yfinance Python library has not been discontinued and remains active as of the latest available information. It is an open-source tool for scraping financial data from Yahoo Finance, widely used for accessing stock prices, historical data, financial statements, and more. The library is maintained by its creator, Ran Aroussi, and the community, with regular updates to address issues caused by changes in Yahoo Finance’s website structure. For example, recent updates have resolved temporary disruptions, such as those reported in 2021 and 2024, often caused by Yahoo Finance altering its API endpoints or website layout.
However, Yahoo Finance’s official API was discontinued in 2017, and yfinance relies on unofficial web scraping of Yahoo Finance’s publicly available data. This makes it susceptible to occasional issues when Yahoo changes its site, but the library itself is still functional and actively supported. Posts on X and web sources confirm its ongoing use and popularity for financial data analysis, with no indication of discontinuation.