-
Notifications
You must be signed in to change notification settings - Fork 140
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
the service is not working #224
Comments
Same here. So its probably a problem caused by Yahoo. It started about Oct 19, 22:00 CET. So the situation is unchanged for about 16 hours. |
yfinance has the same problem .info returns 404 on all tickers |
Occasionally this has been a regional thing so thought I'd mention I'm in the UK and I've been seeing this issue since about 21:00 yesterday :(
|
Same here (Germany). |
It's an inssue on Yahoo itself. Apparently the API is not working and they're trying to fix it: https://query2.finance.yahoo.com/v6/finance/quoteSummary/ENI.MI |
according to that thread, using a proxy/VPN via the USA works |
Thank you for your email. I am still receiving the same message as last
Friday. I am making the query from Spain, and the Yahoo service is not
working. If I switch to a United States IP, the service works without
any issues. Sending warm regards.
Javier Irisarri
l dom, 22-10-2023 a las 02:01 -0700, galashour escribió:
… think issue got 'resolved' (experienced the issues since Friday, but
as of a few minutes ago (Sunday, Oct 22, 2023) seems to work) as it
used to (without any change on my side).
|
yes- earlier today it worked for a few minutes, and then stopped working again (non US IP), thus I 'deleted' my previous message that turned out to be premature .. ). |
It is down, same here in Turkey. I have a question as a beginner: does changing my chrome IP address change my IP address for python API calls into yahooquery too? Or are they different things? |
I have java code , which is working and yahooquery in python is not working seems something we need to add in python library. Will share the updates once I figure it out. |
I posted this observation in yfinance discussion but it is probably relevant for yahooquery as well. |
Thanks for the suggestion, @fredrik-corneliusson . I am actually in the US, but as of yesterday I also got 404 errors. Your workaround suggestion continues to work for me (for now). |
you described works for me for the moment. |
odd, some tickers work others don't :( |
Australia-based responses interesting. No modules working at all with Aussie-based VPN. Oh, meant to add, that streamlit app works just fine no matter what the VPN connection. |
ranaroussi/yfinance#1657 <- possible fix |
Thx for tip. I sort of get the fix and how it might work. That said, can anyone add how the fix can be incorporated into yahooquery standard python code calls. Solution seems to be based on making http calls directly rather than using the yq modules. Given I'm not familiar with the http approach, it doesn't directly address the yq issues being faced. If there's a way then it would save a lot of reworking of code ... |
Yes, I've seen that. What you are effectively suggesting is that yahooquery is now 'dead' or have i misunderstood? |
Hopefully i develope from scratch the webscrapping first time i use it is down ! Fucking dead ! |
Reading https://bit.ly/yahoo-finance-api-feedback makes me wondering why access by US IP-addresses is still working.
Is it a mistake by Yahoo forgetting to block USA IP-adresses? I have installed Proton VPN on my Linux computer and opened a free Proton VPN account. By Proton VPN, location USA, I can use yahooquery from the Netherlands. On a daily basis I am downloading rather extended information of about 1000 selected stocks and ETF's from European and North-American stock exchanges. Everything is running fine. As I understood, yfinance is a kind of webcrawler interpreting webpages. They should not have problems with the policy change of Yahoo. I expect that yfinance will overcome the problems. |
This is helpful as I said but only covers data in quote response. What would code in particular the urls and params etc look like for other data eg financials, key-statistics etc that isn't included in quote responses.? |
I am wondering where this document comes from and when its dated https://bit.ly/yahoo-finance-api-feedback Notice that there is already a paid Premium version of the Yahoo API. It looks like the document is written before the Premium version was introduced. I can't find the text of the document elsewhere on the internet. I am having the feeling that it is an old forgotten document at Google Docs. Can anyone find the date of the document? A question. Is there a Premium user and does the Premium user also have problems? I don't think Yahoo would like to lose non US Premium users. Has anyone considered to use a proxy server? Documentation: https://yahooquery.dpguthrie.com/guide/keyword_arguments/#proxies |
A workaround for Linux users Simply add this line to your /etc/hosts file
This means its no problem of Yahoo, but a network problem. The resolving of the hostname into an IP address has problems. This can be related to the regional servers of Yahoo and the regional dependency of the resolving of hostnames. This would explain the location dependency of the problem. Thanks to @0zd3m1r in .info returns 404 on all tickers |
Wow. I am going to try this. But i can not try right now You are a genius.
Thank you very much.
El jue, 26 oct 2023 14:19, RudyNL ***@***.***> escribió:
… A workaround for Linux users
Simply add this line to your /etc/hosts file
69.147.92.11 query2.finance.yahoo.com
This means its no problem of Yahoo, but a network problem. The resolving
of the hostname into an IP address has problems. This can be related to the
regional servers of Yahoo and the regional dependency of the resolving of
hostnames. This would explain the location dependency of the problem.
Thanks to @0zd3m1r <https://github.com/0zd3m1r> in .info returns 404 on
all tickers <ranaroussi/yfinance#1729>
—
Reply to this email directly, view it on GitHub
<#224 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWJGU274QTN4COZA3UD5Z3YBJIOBAVCNFSM6AAAAAA6IUSUTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBRGAYTAMJUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
it might just mean that there is a old server where it still works, but might stop working in the future |
Until that yahoo resolve the problem you can use google colab -> IDE of google to code on python it's notebook where you can code in python with no worries about library and if you want to install yahoo query at the top of your code on collab write
And enjoy! |
2.3.3 is now live in PyPi. Give it a try. I imagine that there will still be some edge cases that this doesn't solve for, but was hoping to get the majority of you unblocked. |
The reason is your Python version. To install 2.3.3, you must upgrade python version >=3.9 |
Just like @harkovs , my Python version 3.8.10. I am using it through Spyder 5.4.5. The thing is I tried to type "pip install -U" into the IPython Console, but I get "No module named pip" error. There is Python 3.11 in the computer, but spyder opens Python 3.8.10 version. Just don't know how to make spyder open 3.11. |
try it;
and then
|
Thanks for help. I copied "curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11" into the IPython Console, but I got "SyntaxError: invalid syntax". Should I enter the line into Windows powershell or some kind of terminal? |
I learned that I need to install miniconda, and then was able to install python 3.11. Hopefully I will be able to update yahooquery afterwards. |
Someone posted a python class as an alternative to yFinance. They are using https://query1.finance.yahoo.com/v10/finance/ as opposed to https://query2.finance.yahoo.com/v6/finance/. I tried out their code and it seems to work for me: `import requests
|
Why does v2.3.3 have compatibility requirements for python 3.9 and above? |
try google collab it works |
I am not sure exactly why the compatibility requirement is there for 3.9, but I didn't have time to update my version of Python from 3.8.10. So, I modified the pyproject.toml file to override the python dependency from 3.9 to 3.8.10. The installation using "make install" then ran successfully, and my application is running fine on Python 3.8.10. I will migrate my Linux instance forward separately and restore the dependency file back to its original state, but for now I am set. |
2.3.3 does not work for me (USA). Also tried muliple vpn locations but 2.3.3 does not work for me at any locations. |
if you use your own dns server with ad blocker, check that you can access 2.3.3 is working (Germany) |
I am using the premium version 2.3.2 on Sagemaker. I want to look at all the historical financial data of the customers and using the below code from yahooquery import Ticker Specify the path to Chromedriverchromedriver_path = '/home/ec2-user/SageMaker/chromedriver' Set up the Chrome WebDriverchrome_options = webdriver.ChromeOptions() Log in to Yahoodriver.get("https://login.yahoo.com") Your login code goes hereaapl.login(username='XXXX', password='XXXX') Use yahooqueryaapl = Ticker('aapl', driver=driver) I have downloaded the linux driver and upload the executable to amazon sagemaker and provided the path too. Now it fails with the message "WebDriverException: Message: unknown error: cannot find Chrome binary" . I tried to install chrome on sage maker using the terminal using wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm But getting lot of dependent errors. Why is that in the non premium version the downloading of current data works seamlessly like below from yahooquery import Ticker and the premium version of the functions have dependencies on drivers and so on..? I thought the premium version would be just another api call to get more historical data. Thank you all. |
2.3.3 does not work for me even with US IP. |
It now works after I updated the network configuration. |
fc.yahoo.com is reporting: "Will be right back... our engineers are working quickly to resolve the issue." |
yup. it is happening again. offline since 19:05 Rome Time Zone. |
Thanks for verifying it's not just me! Hopefully they will fix it soon! I've been so frustrated that I'm investigating using the Stocks datatype in Excel and xlwings to suck data from it into my stuff |
I switched to yahooquery from yfinance because of this: ranaroussi/yfinance#1729 For me, it is a flashback and I know we won't get out :( |
It is still giving the same error. (502 - bad response from a backend server) But the finance.yahoo.com site is working fine so guessing they have changed the entry yet again. Hope dpguthrie can figure out what's gone bad. |
This should be working now (maybe...depending on location probably 🤷 ) in 2.3.4. Also, any python version should be supported >=3.8.1, <4.0 |
Adding that I saw also 2.3.5 today (not sure what the changes are), but both 2.3.4 worked for me yesterday and 2.3.5 today (Python 3.11, windows, located in EMEA geography). thnx. |
Hi, yahooquery is not working for me since 20-DEC-23. I am in the UK. I've tried python 3.11 & 3.12 and yahooquery 2.3.4, 2.3.5 & 2.3.7. No permutation works. It only works if I VPN as "USA". Please help... |
Describe the bug
when you do this (last version 2.3.2)
import yahooquery
Version python 3.11.5
I'm very grateful for your work and dedication to this impeccable project
Thank very much,
Best Regards,
Javier Irisarri
The text was updated successfully, but these errors were encountered: