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
YahooJson returning 404 not found #318
Comments
Probably the last nail in the coffin for YahooJSON. The module will likely be removed in the next Finance::Quote release unless someone can identify another finance.yahoo.com api that returns JSON. Already some reports posted to another issue which becomes a red herring if access is completely denied. Please, no "me too" comments. Sorry, but we have no control over what Yahoo chooses to allow access to. |
FWIW, the LibreOffice Financials-Extension still manages to scrap data from Yahoo, as of a few minutes ago. Maybe whatever trick they are using in their Python code can be replicated in Perl |
I see the webpage calls out to the chart API which appears to have at least some of the information, most notably current price and previous close. I'm not familiar enough with the code to know what else (if anything) would be required. Hopefully it's helpful. https://query1.finance.yahoo.com/v8/finance/chart/AAPL
|
I also discovered either of these will work (hostname can be query2 or query1).
or
While waiting for a new release to be pushed to CPAN, in
Thanks. |
Fixes related to YahooJSON API URL - Issue #318
* Consorsbank.pm - New module - PR #329 * Stooq.pm - New module - Issue #203 * Bloomberg.pm - Changed modules to utilize cookie jar - PR #331 - Issue #324 * AlphaVantage.pm - Apply currency scaling (GBp -> GBP) when symbol had additional ".X" suffix - Issue #281 Fixed check for "Information" JSON usually returned when daily API limit has been reached. * YahooWeb.pm - Fixed incorrect pricing for single character symbols and changed URL to get trade date - Issues #314 #319 * Another fix to the URL in YahooJSON and CurrencyRates/YahooJSON - Issue #318
https://query2.finance.yahoo.com/v11/finance/quoteSummary/APPL?modules=price,summaryDetail,defaultKeyStatistics
output:
{"finance":{"result":null,"error":{"code":"Not Found","description":"HTTP 404 Not Found"}}}
The text was updated successfully, but these errors were encountered: