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

Screeners not pulling any data #41

Closed
Sanketh-Nagarajan opened this issue Mar 2, 2022 · 12 comments
Closed

Screeners not pulling any data #41

Sanketh-Nagarajan opened this issue Mar 2, 2022 · 12 comments
Assignees

Comments

@Sanketh-Nagarajan
Copy link

Sanketh-Nagarajan commented Mar 2, 2022

Hi,

I am trying to import technical data from finviz using the following piece of code:

from finvizfinance.screener.technical import Technical

finviz_scan_technical = Technical()
technical_df = finviz_scan_technical.screener_view()

But the output says 'No Tickers found.'. As you can see, I have not set any filters but still the function is not retrieving any data.
Did some setting change on finviz's side to cause this failure?

Btw, I am using version "0.11.0"

Thanks

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

I think it is due to change on finviz side. The package fail to fetch page information. All the screeners have the same issue. I will fix this ASAP.

@lit26 lit26 self-assigned this Mar 2, 2022
@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

The package is updated. Please check the new version. Thanks for reporting.

@Sanketh-Nagarajan
Copy link
Author

I upgraded the package and I am getting the following error for the same piece of code:

line 283, in screener_view
table = soup.findAll("table")[18]
IndexError: list index out of range

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

My mistake. I change in one place but forget to change this one. Sorry.

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

Please directly pull from the repo to see if it is working. If not I will push a new version to PyPi. Thanks.

@Sanketh-Nagarajan
Copy link
Author

I tried pulling directly from the repo. still getting the same error while loading page.

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

Can you share the python script and the error? Since I didn't get this error.

@Sanketh-Nagarajan
Copy link
Author

finviz_scan_technical = Technical()
technical_df = finviz_scan_technical.screener_view()

[Info] loading page [------------------------------] 1/429
[Info] loading page [------------------------------] 2/429
[Info] loading page [------------------------------] 3/429
[Info] loading page [------------------------------] 4/429
[Info] loading page [------------------------------] 5/429
[Info] loading page [------------------------------] 6/429
[Info] loading page [------------------------------] 7/429
[Info] loading page [#-----------------------------] 8/429
[Info] loading page [#-----------------------------] 9/429
[Info] loading page [#-----------------------------] 10/429
[Info] loading page [#-----------------------------] 11/429
[Info] loading page [#-----------------------------] 12/429
[Info] loading page [#-----------------------------] 13/429
[Info] loading page [#-----------------------------] 14/429
[Info] loading page [#-----------------------------] 15/429
[Info] loading page [#-----------------------------] 16/429
[Info] loading page [#-----------------------------] 17/429
[Info] loading page [#-----------------------------] 18/429
[Info] loading page [#-----------------------------] 19/429
[Info] loading page [#-----------------------------] 20/429
[Info] loading page [#-----------------------------] 21/429
[Info] loading page [##----------------------------] 22/429
[Info] loading page [##----------------------------] 23/429
[Info] loading page [##----------------------------] 24/429
Traceback (most recent call last):
File "C:\Users\XXX\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 3, in
technical_df = finviz_scan_technical.screener_view()
File "C:\Users\XXX\Anaconda3\lib\site-packages\finvizfinance\screener\overview.py", line 283, in screener_view
table = soup.findAll("table")[18]
IndexError: list index out of range

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

I think your package is not updated. So the previous error is the number 18. But the current master branch is changed to 19.

@Sanketh-Nagarajan
Copy link
Author

It works! Could you please push the new version to PyPi .. Thanks!

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

Sure, thanks for helping.

@lit26
Copy link
Owner

lit26 commented Mar 2, 2022

The package is published on PyPi.

@lit26 lit26 closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants