lit26 / finvizfinance

Finviz analysis python library.
https://finvizfinance.readthedocs.io/en/latest/
MIT License
514 stars 85 forks source link

BUG: News Feed Date Issue (text being returned with 'today' rather than date etc) #81

Closed scottstables closed 1 year ago

scottstables commented 1 year ago

finvizfinance version checks

Reproducible Example

from finvizfinance.quote import finvizfinance

stock = finvizfinance('tsla')
news_df = stock.ticker_news()
print(news_df)

Issue Description

Presents error - ValueError: time data 'Today 07:10AM' does not match format '%b-%d-%y %I:%M%p'

Expected Behavior

Should construct datafame with Date Column

Installed Versions

finvizfinance 0.14.5

quangngoc commented 1 year ago

It seems this error is caused by: https://github.com/lit26/finvizfinance/blob/d8e42cd962e0fd67ef1d648680bb83790e8a13e8/finvizfinance/quote.py#L299

lit26 commented 1 year ago

Should be fixed in https://github.com/lit26/finvizfinance/pull/82. Release in v0.14.6. Thanks for reporting.