From b6fb3c8234e5828f5aad1f70bbf407081454d4dc Mon Sep 17 00:00:00 2001 From: Tianning Li Date: Mon, 2 Oct 2023 12:26:24 -0700 Subject: [PATCH] Add extra columns for custom screener --- finvizfinance/screener/custom.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/finvizfinance/screener/custom.py b/finvizfinance/screener/custom.py index 5f15ac5..c120dda 100644 --- a/finvizfinance/screener/custom.py +++ b/finvizfinance/screener/custom.py @@ -82,6 +82,22 @@ 68: "Earnings Date", 69: "Target Price", 70: "IPO Date", + 73: "Book value per share", + 74: "Cash per share", + 75: "Dividend", + 76: "Employees", + 77: "EPS estimate next quarter", + 78: "Income", + 79: "Index", + 80: "Optionable", + 81: "Previous Close", + 82: "Sales", + 83: "Shortable", + 84: "Short Interest", + 85: "Float/Outstanding", + 86: "Open", + 87: "High", + 88: "Low", } @@ -147,6 +163,10 @@ def screener_view( url = self.url + "&" + self.order_dict[order] if not ascend: url = url.replace("o=", "o=-") + + if 0 in columns: + columns.remove(0) + columns.insert(0, 0) columns = [str(i) for i in columns] url += "&c=" + ",".join(columns) soup = web_scrap(url)