Skip to content

Commit

Permalink
fix(arizctapp_div_2): Tweak scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Nov 20, 2023
1 parent cf65945 commit a7bb23e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion juriscraper/opinions/united_states/state/arizctapp_div_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def _process_html(self) -> None:
for item in self.html.xpath(path):
docket = item.xpath("./text()")[0]
url = item.xpath("./@href")[0]
name = item.xpath("./following::td[1]/*/text()")[0]
names = item.xpath("./following::td[1]/*/text()")
if not names:
continue
name = names[0]
# Expected: "Opinion Filed: 10/13/2021"
date_string = item.xpath("./following::td[2]/text()")[0].strip()
date = clean_if_py3(date_string).rsplit(":", 1)[1].strip()
Expand Down

0 comments on commit a7bb23e

Please sign in to comment.