lit26 / finvizfinance

Finviz analysis python library.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: cannot import name 'finviznews' from 'finvizfinance.news'

DavidRavnsborg opened this issue · comments

Following along with the README.md. Importing and calling anything from finvizfinance.quote work perfectly, but importing finvizfinance.news give me:
ImportError: cannot import name 'finviznews' from 'finvizfinance.news'

The issue is that the News class in finvizfinance.news has been renamed. The fix is either to update the README.md file to alias the news module: from finvizfinance.news import News as finviznews, or to otherwise account for the re-name.

Yup, you are right. I have renamed the files in the later packages and didn't change the readme. The bug is fixed. Thanks for your contribution.