Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xinluh authored Jun 3, 2023
1 parent ebf4224 commit 56e906c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beanprice/sources/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,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')
session.get('https://fc.yahoo.com') # 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"
Expand Down

0 comments on commit 56e906c

Please sign in to comment.