运行此代码时,我收到一个URL错误-
import yahoo_finance as yf
yahoo = yf.Share('YHOO')
d=yahoo.get_historical('2014-05-19', '2014-05-20')
print "A week of stock daily quotations:"
for e in d:
print e
print "Info about the company:",yahoo.get_info()
print "Market capitalization in dollars:",yahoo.get_market_cap()
错误-请帮我解决这个问题
URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>
雅虎长期提供EOD金融数据服务,但早在2017年就被终止。您可能希望检查其他检索此信息的方法,例如使用https://pypi.org/project/yahoo-finance-api2/
相关问题 更多 >
编程相关推荐