problem with yfinance

according to chatgpt:

These are some of the challenges users run into:

  1. Yahoo changed parts of its site / API / encryption

    • Yahoo Finance’s official data API was shut down years ago. yfinance works around that by scraping web-pages. Stack Overflow+2Rana Roussi+2

    • But Yahoo sometimes changes how data is encrypted or presented, so yfinance may break or partially lose functionality until it’s updated. Quantra+1

  2. Rate-limiting, requests blocked, missing data

    • Some endpoints (or types of data) may be no longer available or harder to access. E.g. fundamental data or historical data may be partially disrupted. Reddit+3Quantra+3Reddit+3

    • Also, many users report “Too many requests”, being rate-limited, or certain ticker data failing. Reddit+2Reddit+2

  3. Dependence on Yahoo’s public site

    • Because it scrapes the site (not using an official stable API), any UX changes, HTML structure changes, or Yahoo policy changes (e.g. making some data behind paywalls or stopping CSV/historical downloads) can break parts of yfinance

我自己因为以前没用过 Python, 我是自动从Yahoo history 网页抓取HTML, 然后取出其中的数据,刚开始半年一切正常,后来发现有时Yahoo 禁止自动抓取,后来干脆用收费的数据,eodhd的daily only 数据,每年约200美元,用起来蛮好,也没太多限制。

请您先登陆,再发跟帖!