Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
scottstables opened this issue Sep 10, 2023 · 2 comments · Fixed by #82
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@scottstables
Copy link

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

@quangngoc
Copy link

It seems this error is caused by:

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

@lit26 lit26 added the bug Something isn't working label Sep 11, 2023
@lit26 lit26 mentioned this issue Sep 11, 2023
5 tasks
@lit26 lit26 closed this as completed in #82 Sep 11, 2023
@lit26
Copy link
Owner

lit26 commented Sep 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants