lit26 / finvizfinance

Finviz analysis python library.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stock.ticker_fundament() is not working

plajos1 opened this issue · comments

Since yesterday (29.12) the stock.ticker_fundament() does not work. Maybe some change on the webpage and the scraper cannot cope with it...

I'm having the same problem...

  File "[REDACTED]/.local/lib/python3.7/site-packages/finvizfinance/quote.py", line 124, in ticker_fundament
    fundament_info["Company"] = rows[1].text

In quote.py the function "ticker_fundament()" refers to the 5th table in the soup, but it seems, that the page has been changed yesterday 14:00ET, so the 4th table contains the necessary data:
"table = self.soup.findAll("table")[4]" will help.
Maybe there are more issues, but this is the was the problem.

Many thanks. This worked for me (i.e., change to use table 4). Thanks thanks!

This issue is fixed in the latest version. Thank you all.