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

get_stock() IndexError: list index out of range on line to fetch company_details #205

Open
taralika opened this issue Nov 22, 2023 · 0 comments

Comments

@taralika
Copy link

When running PR #202 Getting this error:

File "/src/finviz/main_func.py", line 37, in get_stock
company_details = title.cssselect('h2[class="quote-header_ticker-wrapper_company"]')[0]
IndexError: list index out of range

Root cause:
Finviz has added a new text-xl class name in the h2

<h2 class="quote-header_ticker-wrapper_company text-xl">
   ...
</h2>

PR #204 fixes this issue

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

1 participant