From 6354069363271cfe8d75e92ab4d8744ba642d5c1 Mon Sep 17 00:00:00 2001 From: Gianfranco Rossi Date: Wed, 24 Jan 2024 14:47:46 -0500 Subject: [PATCH] fix(visuper_p): refined xpath for valid rows Solves #790 --- .../opinions/united_states/territories/visuper_p.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/juriscraper/opinions/united_states/territories/visuper_p.py b/juriscraper/opinions/united_states/territories/visuper_p.py index 382cdbb50..67b979731 100644 --- a/juriscraper/opinions/united_states/territories/visuper_p.py +++ b/juriscraper/opinions/united_states/territories/visuper_p.py @@ -13,8 +13,13 @@ def __init__(self, *args, **kwargs): ) self.status = "Published" - def _process_html(self): - for row in self.html.xpath(".//tbody//tr"): + def _process_html(self) -> None: + """Parse HTML into case objects + + :return: None + """ + row_xpath = ".//tbody//tr[.//a[text() and not(@title='Summary')]]" + for row in self.html.xpath(row_xpath): ( case_name, date_filed,