Python错误:json.decoder.JSONDecodeError:预期值:第1行第1列字符0

问题描述

我正在使用finnhub提取股市数据,但我一直遇到此错误。这是发生错误代码段。斯金格代表股市行情。例如,Apple将是AAPL。网址根据代码变化:

def getNewsSentiment (stringer):
    print ("\n")
    part='https://finnhub.io/api/v1/news-sentiment?symbol' +stringer+ 'token=<TOKEN>'
    r = requests.get(part)
    print (r.json())

方法调用getNewsSentiment(stringer)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)