everytime i try to download stocks in yfinance, it gives me a rate limit and tells me to try again later. i have been trying off and on for weeks but it never works. even trying to download a single stock doesn’t work. what can I do to fix this?
Please read this forum’s guide Getting good answers to your questions.
Jupyter uses kernels to run many languages and Python just happens to be one. There are other ways to run Python. Traditionally, you run it in a console or terminal. You can even put the code in a text file with a .py
extension and then point Python at that text file, a.k.a. Python script, to run the code. A good process to go through is running the same code a more traditional way and see if you have the same issue. If you have the same issue then it isn’t a Jupyter issue and therefore is not appropriate to this forum. I suspect that is the case here. Often once you have enough experience, you can do this as a thought experiment when trying to decide where the issue lies and where to seek assistance.
If you go to the Python Package Index (PYI) page for the package you’ll see a link to the homepage listed there, which leads to here. There is an issues section where perhaps this would be more appropriate?
In fact, if you had looked there you’d see this very recent issue that rates being called a ‘Meta’-issue that gathers together recent posts that look related to what you are posting:
Meta-issue: fetch fails in latest 0.2.54.
In particular I would read through this one, ’ Edge: Too Many Requests, response code = 429’ from February 19th.
No matter where you seek help, the general ideas in Getting good answers to your questions, and especially in the last link, ‘How do I ask a good question’, at the bottom of that post, will serve you well as a guide to writing for help in the future.