diff --git a/beanprice/sources/yahoo.py b/beanprice/sources/yahoo.py index 6f0fd9c..7b2b39e 100644 --- a/beanprice/sources/yahoo.py +++ b/beanprice/sources/yahoo.py @@ -115,7 +115,7 @@ def get_latest_price(self, ticker: str) -> Optional[source.SourcePrice]: session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0'}) - session.get('https://fc.yahoo.com') # This populates the correct cookies in the session + session.get('https://guce.yahoo.com/consent') # This populates the correct cookies in the session crumb = session.get('https://query1.finance.yahoo.com/v1/test/getcrumb').text url = "https://query1.finance.yahoo.com/v7/finance/quote"