Skip to content

Commit

Permalink
Update scraper_functions.py (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrants authored Apr 8, 2023
1 parent 83de213 commit 30726d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finviz/helper_functions/scraper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_table(page_html: requests.Response, headers, rows=None, **kwargs):
def get_total_rows(page_content):
""" Returns the total number of rows(results). """

total_element = page_content.cssselect('td[width="140"]')
total_element = page_content.cssselect('td[width="128"]')
total_number = (
etree.tostring(total_element[0]).decode("utf-8").split("</b>")[1].split()[0]
)
Expand Down

0 comments on commit 30726d3

Please sign in to comment.