Closed Matt-Seath closed 1 year ago
0.4 p/sec is high for info
data, so probably triggering Yahoo spam which then cause Yahoo to return incomplete data.
The fix is fine, submit in a pull request (read #1084).
Thanks for your reply, I should have clarified my script is only capped to 0.4 p/sec, but because I live off Australias NBN, it takes about 7 - 8 sec each request on average. Because of this, I don't think the issue is spam related..
For now the workaround is still working so I'll put in a pull request shortly, thanks.
Hi, I've recently started encountering an error while retrieving ticker.info for multiple stocks with a script I've been using for a while. I'm using version 0.2.9, my script is limited to a maximum of 0.4 ticker.info requests p/sec, and I am using Endeavor-OS "Kernel: 6.1.9-arch1-1".
The error returned is as follows:
I'm only a newb so my workaround was to just wrap the problem in a try block and set variable "v" to "None" on Exception. This appears to solve the issue but I doubt its an optimal solution.
Is this a known issue? and if so, could someone please provide a fix or point me to an existing thread as I haven't been able to find one. My changes are shown below:
python3.10/site-packages/yfinance/scrapers/quote.py (Line 296)