lit26 / finvizfinance

Finviz analysis python library.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetching list of tickers returns 'NoneType'

D1al-T0ne opened this issue · comments

commented

Just curious what has changed with fetching a list of just tickers based on filters?

It seems I didn't implement that. I will update the module in the next version.

I miss understanding your question. If you get NoneType, there is no stock under your custom filters. The filters are also working in finvizfinance.ticker.

commented

Running a quick filter for tickers on 'NYSE' returns 'No ticker found'
Please point out what I may be doing wrong.
from finvizfinance.screener.ticker import Ticker
tickers = Ticker()
filters_dict = {'Exchange': 'NYSE'}
tickers.set_filter(filters_dict=filters_dict)
df = tickers.ScreenerView()
No ticker found.
Thanks for your help.

According to your code, it seems you are using an old version. Please update your package. Most of the functions are changed. Please check the doc.

commented

I have noticed the changes, hence my original question. I have updated the module to the latest version. I have looked at the docs and tried with changed screener_view(). I’m missing something.

Sorry, I didn't understand your problem. If rewriting your code, it is shown below.
image

commented

All good!
This was a combination of issues.
When the first error occurred I tried screener_view() but had adjusted my code in trying to address the issue.
All straightened out.
Thanks for the help.

No problem.