Compare commits

..
1 Commits
Author SHA1 Message Date
cmallwitz a4432a85e6 Fix Yahoo crumb handling 2024-05-17 15:56:43 +01:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -184,11 +184,11 @@ class Yahoo(BaseClient):
return 'Yahoo.getRealtime({}, {}) - handleCookiesAndConsent'.format(ticker, datacode)
try:
r = '"crumb":"([^"]{11})"'
r = r'\bcrumb=([^"]{11})"'
pattern = re.compile(r)
match = pattern.search(text)
if match:
self.crumb = match.group(1)
self.crumb = urllib.parse.unquote(match.group(1))
except BaseException as e:
logger.exception("BaseException ticker=%s datacode=%s", ticker, datacode)
del self.realtime[ticker]
+1 -1
View File
@@ -14,7 +14,7 @@ import os
cur_dir = os.getcwd()
addin_id = "com.financials.getinfo"
addin_version = "3.6.0"
addin_version = "3.6.1"
addin_displayname = "Financial Market Extension"
addin_publisher_link = "https://github.com/cmallwitz/Financials-Extension"
addin_publisher_name = "The Publisher"