Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing data for private companies #1947

Open
opinsky opened this issue May 22, 2024 · 0 comments
Open

missing data for private companies #1947

opinsky opened this issue May 22, 2024 · 0 comments

Comments

@opinsky
Copy link

opinsky commented May 22, 2024

Describe bug

Cannot use yfinance to scrap [limited] data from private companies.

Simple code that reproduces your problem

curl https://finance.yahoo.com/company/space-exploration-technologies?h=eyJlIjoic3BhY2UtZXhwbG9yYXRpb24tdGVjaG5vbG9naWVzIiwibiI6IlNwYWNlWCJ9 results in proper data but

spacex = yf.Ticker("Space Exploration Technologies") yields an error

Debug log

04 Client Error: Not Found for url: https://query2.finance.yahoo.com/v10/finance/quoteSummary/SPACE%20EXPLORATION%20TECHNOLOGIES?modules=financialData%2CquoteType%2CdefaultKeyStatistics%2CassetProfile%2CsummaryDetail&corsDomain=finance.yahoo.com&formatted=false&symbol=SPACE+EXPLORATION+TECHNOLOGIEScrumb=FQPvdjmXdGN
{'trailingPegRatio': None}

Bad data proof

No response

yfinance version

latest

Python version

3.12

Operating system

Sonoma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant