lit26 / finvizfinance

Finviz analysis python library.

Home Page:https://finvizfinance.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

scottstables opened this issue · comments

finvizfinance version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the master branch of finvizfinance.

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

It seems this error is caused by:

news_time = datetime.strptime(news_time, "%b-%d-%y %I:%M%p")

Should be fixed in #82. Release in v0.14.6. Thanks for reporting.