Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmanalpha authored and larroy committed May 16, 2020
1 parent 1a45010 commit 87f9c20
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions yfinance/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ def get_json(url, proxy=None):

json_str = html.split('root.App.main =')[1].split(
'(this)')[0].split(';\n}')[0].strip()

# 2/29/20 there is a bug where the
# return value is 7.495B for MSFT other current assets
# but the display value on the web is 7.473B
# this is from the api -- don't know how ui gets it right....

# # vsc will only allow 64K of text in watch copy :(
# with open("temp.json", "w") as file:
# file.write(json_str)

data = _json.loads(json_str)[
'context']['dispatcher']['stores']['QuoteSummaryStore']

Expand Down

0 comments on commit 87f9c20

Please sign in to comment.