Skip to content

Commit

Permalink
Update analyst table css (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaslek authored Dec 12, 2022
1 parent 6d05d33 commit 83de213
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion finviz/main_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ def get_analyst_price_targets(ticker, last_ratings=5):
try:
get_page(ticker)
page_parsed = STOCK_PAGE[ticker]
table = page_parsed.cssselect('table[class="fullview-ratings-outer"]')[0]
table = page_parsed.cssselect(
'table[class="js-table-ratings fullview-ratings-outer"]'
)[0]

for row in table:
rating = row.xpath("td//text()")
Expand Down

0 comments on commit 83de213

Please sign in to comment.