Financials-Extension icon indicating copy to clipboard operation
Financials-Extension copied to clipboard

Yahoo GETREALTIME Statements . . . Again

Open Andresmith76 opened this issue 2 years ago • 17 comments

Looks like Yahoo has changed their website again as the GETREALTIME command is now broken. I'm running LibreOffice v. 7.3.2.2

Andresmith76 avatar Jan 18 '23 18:01 Andresmith76

It is still working for me - can you provide an example symbol/formula? Try restarting your LibreCalc completely before... Thanks

cmallwitz avatar Jan 18 '23 19:01 cmallwitz

I opened LibreOffice and saw #N/A on this (an other similar) statements: =GETREALTIME("T",101,"YAHOO")

Andresmith76 avatar Jan 18 '23 19:01 Andresmith76

other examples not working ( OO version : 7.4.4.2, OS: OSX 12.6.2, financial extension ver 3.2.1)

GETREALTIME("ADBE",21,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ADBE",90,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ETH-USD",21,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ETH-USD",90,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

contil avatar Jan 18 '23 19:01 contil

I opened issue #77 days ago with pretty much the same symptoms. I'll be happy to share any and all logs if you wish.

Durhammer3111 avatar Jan 18 '23 23:01 Durhammer3111

Don't fret - cmallwitz is always awesome at taking care of these issues quickly!

Andresmith76 avatar Jan 18 '23 23:01 Andresmith76

I have published a new version that hopefully addresses some shortcomings. Please close LibreCalc completely and use either a blank/new spreatsheet or the attached examples.ods to see if the extension is working in general or there is a problem with you spreadsheet itself.

cmallwitz avatar Jan 20 '23 16:01 cmallwitz

Swapping get_cookies() values in financials_yahoo.com with the values from my firefox browser seemed to get this working for me (US IP to US Yahoo -- no login). However this does require a recompile and extension reinstall.

    def get_cookies(self):
        return [
            cookie("A1", "[REDACTED]"),
            cookie("A3", "[REDACTED]"),
            cookie("A1S", "[REDACTED]"),
            cookie("maex", "[REDACTED]"),
            cookie("PRF", "[REDACTED]"),
            cookie("thamba", "[REDACTED]")
        ]

partimer avatar Jan 20 '23 16:01 partimer

I changed the cookie stuff so you can now edit a text file in ~/.financials-extension/yahoo.cookiejar

Having said that I have tested the extension using while VPNed to the US and pulling S&P 500 symbols so I'm wondering something else is going on ?

cmallwitz avatar Jan 20 '23 16:01 cmallwitz

THANK YOU! Updating with 3.3.0 did solve my reported issues.

Andresmith76 avatar Jan 20 '23 16:01 Andresmith76

Same here -- THANKS!!!

Durhammer3111 avatar Jan 20 '23 17:01 Durhammer3111

Woohoo! Working once again, thank you!

spacecatz03 avatar Jan 20 '23 17:01 spacecatz03

Yep, working. Love this extension. Is there a way I can send $20 to cmallwitz to help support this?

oldschool001 avatar Jan 20 '23 21:01 oldschool001

other examples not working ( OO version : 7.4.4.2, OS: OSX 12.6.2, financial extension ver 3.2.1)

GETREALTIME("ADBE",21,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ADBE",90,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ETH-USD",21,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

GETREALTIME("ETH-USD",90,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

I just downloaded the latest version, and I am having this same issue.

rodericklm1 avatar Jan 20 '23 22:01 rodericklm1

other examples not working ( OO version : 7.4.4.2, OS: OSX 12.6.2, financial extension ver 3.2.1) ...

I just downloaded the latest version, and I am having this same issue.

Did you REMOVE the old extension before loading in the new one?

Durhammer3111 avatar Jan 21 '23 12:01 Durhammer3111

This doesn't make much sense to me:

GETREALTIME("ADBE",21,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'" GETREALTIME("ADBE",90,"YAHOO") - output "Yahoo.getRealtimeSummary(ADBE, 21) - process: 'NoneType' object has no attribute 'findall'"

90 is CLOSE price for historical data but you are calling it with GETREALTIME and the error references 21 (LAST_PRICE) ? What is happening ?

cmallwitz avatar Jan 21 '23 13:01 cmallwitz

Well, it's also outputting the same (ADBE,21) stuff for his ETH-USD queries! Seems to be stuck on ADBE, period.

Oh! Roderick is just quoting Contil's output. Duh. Wonder if 3.3.0 fixed Contil?

Durhammer3111 avatar Jan 21 '23 23:01 Durhammer3111

Was having same NA issue with extension running windows 11. Ran Libre Office as administrator and problems went away

Leodivinci avatar Apr 02 '24 22:04 Leodivinci

Closing this - new version 3.6.1 is out

cmallwitz avatar May 17 '24 16:05 cmallwitz