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

Access to Yahoo! API #1

Open
NoelJB opened this issue Aug 13, 2024 · 0 comments
Open

Access to Yahoo! API #1

NoelJB opened this issue Aug 13, 2024 · 0 comments

Comments

@NoelJB
Copy link
Collaborator

NoelJB commented Aug 13, 2024

As a tip regarding the Yahoo! Finance API for Java users ...

Yahoo! appears to do user-agent based blocking. The Java YahooFinance API hasn't been updated by the owner in years, leaving many unresolved issues and pull requests. In our experience, this leads to the current (3.17) version in Maven central being broken and useless, leading to the existence of over 200 forks.

One such fork is https://github.com/gilbertoca/yahoofinance-api. I cloned that repository to my hackathon VM, built the artifact, and pointed my test project to use it. That fork works for me. I tested with my own code, as well as the various samples on the web page.

For Python users, the code on the portfolio project page still works for me. At some point, we might need to add a user-agent entry, e.g., storage_options = {'User-Agent': 'Mozilla/5.0'}).

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