1
startDate = '2018-06-12 00:30:00'
endDate = '2019-06-12 17:35:00'

articles = client.get_news(tickers=['GOOGL'],
                            sources=['washingtonpost.com'],
                            startDate = startDate,
                            endDate = endDate)
df2 = pd.DataFrame(articles)
df2.head()

这是代码,当它在“df2.head()”输出时,第一篇文章是从 2020 年开始的。有人经历过吗?

4

1 回答 1

1
于 2020-09-12T20:06:25.773 回答