freelawproject / juriscraper

An API to scrape American court websites for metadata.
https://free.law/juriscraper/
BSD 2-Clause "Simplified" License
340 stars 98 forks source link

`nj` scraper errors on string split #1044

Closed sentry-io[bot] closed 5 days ago

sentry-io[bot] commented 2 weeks ago

Sentry Issue: COURTLISTENER-7GE

ValueError: not enough values to unpack (expected 2, got 1)
  File "cl/scrapers/management/commands/cl_scrape_opinions.py", line 387, in handle
    self.parse_and_scrape_site(mod, options)
  File "cl/scrapers/management/commands/cl_scrape_opinions.py", line 350, in parse_and_scrape_site
    site = mod.Site().parse()

Filed by @grossir

The problem is the case "Alejandra Padilla v. Young Il An" that has no "(" in the name, so the split below breaks the script

            if "njtax" in self.court_id:
                pass
            else:
                name, other = name.split("(", 1)
sentry-io[bot] commented 1 week ago

Sentry Issue: COURTLISTENER-7AZ

sentry-io[bot] commented 1 week ago

Sentry Issue: COURTLISTENER-7AY

sentry-io[bot] commented 1 week ago

Sentry Issue: COURTLISTENER-7AW

sentry-io[bot] commented 1 week ago

Sentry Issue: COURTLISTENER-7AW