From 13c675329bb07694fa8f80901352d389aacdf581 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 7 Oct 2023 05:24:02 +0800 Subject: [PATCH] filter the normalize-space of header fixed the empty result issue --- finviz/screener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finviz/screener.py b/finviz/screener.py index 210137e..6c1bb15 100644 --- a/finviz/screener.py +++ b/finviz/screener.py @@ -414,7 +414,7 @@ def __get_table_headers(self): """ Private function used to return table headers. """ return self._page_content.cssselect('tr[valign="middle"]')[0].xpath( - "td//text()" + "th//text()[normalize-space()]" ) def __search_screener(self):