The Pandas JSON parser complains of "Protocol not known". It's upset by the semicolon in the URL. My fix has to been to modify safe_read_json() in company_valuation.py:
def safe_read_json(data):
if (data.find("Error Message") != -1):
raise Exception(data[20:-3])
else:
data = data.replace('http:','http-')
data = data.replace('https:','https-')
return pd.read_json(data)
This at least removes the semicolons. There's probably prettier ways of doing this!
For example, https://fmpcloud.io/api/v3/income-statement/AAPL?period=quarter&limit=400&apikey=demo ends like this:
The Pandas JSON parser complains of "Protocol not known". It's upset by the semicolon in the URL. My fix has to been to modify safe_read_json() in company_valuation.py:
This at least removes the semicolons. There's probably prettier ways of doing this!