有一个软件包可以帮助获取数据https://github.com/wenboyu2/yahoo-earnings-calendar,并且可以在python2上使用。但是在python3中这会引发错误,因此我可以得出结论,该程序包不支持python3。我只需要以下两个功能:
print yec.earnings_on(date_from)
print yec.earnings_between(date_from, date_to)
因为它们返回了必要的信息。是否存在对此问题的一些决策。
谢谢。