Skip to content

Commit

Permalink
fix(calag): Update PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Jan 25, 2024
1 parent f1b4b23 commit 154f38e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions juriscraper/opinions/united_states/state/calag.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def build_summaries(self, row: HtmlElement) -> str:
return f"QUESTIONS: {questions} CONCLUSIONS: {conclusions}"

def _process_html(self) -> None:
"""Process California AG page
"""Process California AG HTML
:return: Nothing
:return: none
"""
for row in self.html.xpath("//table/tbody/tr"):
for row in self.html.xpath("//table/tbody/tr[.//a]"):
docket = row.xpath(".//a//strong/text()")[0].strip()
self.cases.append(
{
Expand All @@ -50,10 +50,9 @@ def _process_html(self) -> None:
)

def _download_backwards(self, year: str) -> None:
"""Backscraper
"""Download backwards
:param year: The year to scrape
:return: None
"""
self.url = f"https://oag.ca.gov/opinions/yearly-index?conclusion-year[value][year]={year}"
self.html = self._download()

0 comments on commit 154f38e

Please sign in to comment.