Skip to content

Commit

Permalink
Merge pull request #886 from grossir/fix_visuper_p
Browse files Browse the repository at this point in the history
fix(visuper_p): refined xpath for valid rows
  • Loading branch information
flooie authored Jan 24, 2024
2 parents 3fd9bad + 9e9ec93 commit ae99976
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions juriscraper/opinions/united_states/territories/visuper_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ae99976

Please sign in to comment.