dpguthrie / yahooquery

Python wrapper for an unofficial Yahoo Finance API
https://yahooquery.dpguthrie.com
MIT License
766 stars 137 forks source link

"Invalid Crumb" error #284

Open ed5555 opened 1 month ago

ed5555 commented 1 month ago

Hi,

When trying to run the modules I get for most tickers that error.

Can it be solved?

Thank you

MarcCiriani commented 1 month ago

I have the same issue here.

RudyNL commented 1 month ago

I am getting this error regularly during the last weeks with my program to search good stocks. I can't find a pattern. Running the program again and the error doesn't occur. I have the feeling that the error is traffic dependent. The error occurs most frequently in the hours after closure of the New York stock exchange. For the analysis of the stocks of one stock exchange, not all stocks are affected. Last run I had troubles for a large number of stocks in Brussels and Paris, but for example Amsterdam, Copenhagen, Oslo, Stockholm , Zürich, Frankfurt and London didn't give any problems. The pattern when and where the errors occur is continuously changing.

With another program I am watching about 850 stocks from all over the world. The evening run after closure of New York is crashing during the last week. Rerunning about an hour later doesn't give any problems. The early morning run, about 9 hours after closing of new York, doesn't give any problems either. Note, this is not about the "Invalid Crumb" error. Mostly it is a time out problem equests.exceptions.ConnectionError: HTTPSConnectionPool(host='query2.finance.yahoo.com', port=443): Read timed out.

The last weeks the reliability of Yahoofinance is decreasing.