lit26 / finvizfinance

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

'Overview' object has no attribute 'ScreenerView' #40

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi I am running the example in the documentation and I am getting this error

from finvizfinance.screener.overview import Overview

foverview = Overview()
filters_dict = {'Index': 'S&P 500'}
foverview.set_filter(filters_dict=filters_dict)
df = foverview.ScreenerView()

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/var/folders/7g/gr9fl0cx43g5f42xf78n_str0000gn/T/ipykernel_59856/4129785455.py in <module>
      2 filters_dict = {'Index': 'S&P 500'}
      3 foverview.set_filter(filters_dict=filters_dict)
----> 4 df = foverview.ScreenerView()

AttributeError: 'Overview' object has no attribute 'ScreenerView'

I cannot understand the reason.

lit26 commented 2 years ago

Sorry for the late response. Most functions have changed the function name to meet the python coding style. So ScreenerView has changed to screener_view. Please refer to the latest doc (https://finvizfinance.readthedocs.io/en/latest/index.html) for others. Thanks.