ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
13.24k stars 2.34k forks source link

Get News Articles #1602

Closed RainmakerP closed 1 year ago

RainmakerP commented 1 year ago

Hi,

Is there a way to get news articles, with their content, through yfinance?

It seems like currently we're only getting metadata for the articles but not the actual content of the article.

Any help or pointers are greatly appreciated!

Thanks!

GerritVanMol commented 1 year ago

Any updates on this? This would be very useful for me as well...

wj210 commented 1 year ago

is there any way to get historical news as well? like over a time frame?

rickturner2001 commented 1 year ago

Beautifulsoup is in the requirements.txt, we could use that to write a scraper and get the news for whatever ticker. any thoughts on this @ValueRaider ?

ValueRaider commented 1 year ago

Ticker.news already returns URLs so why scraping needed?

rickturner2001 commented 1 year ago

Well in the same request we could screape the headline, description, publisher and when the news was published. So it might be a good idea to provide a dataframe with this data

ValueRaider commented 1 year ago

You've enumerated everything already returned by Ticker.news