Skip to content

Commit

Permalink
feat(mesuperct): backscrape 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
quevon24 committed Feb 25, 2025
1 parent 5841163 commit ebaf087
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions juriscraper/opinions/united_states/state/mesuperct.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
History:
2023-12-28: Created
2025-02-25: Back scrape 2024
"""

from datetime import date
Expand All @@ -19,15 +20,15 @@ def __init__(self, *args, **kwargs):
self.court_id = self.__module__
self.url = f"https://apps.maine.edu/SuperiorCourt/show_list.jsp?plaintiff=&defendant=&year={date.today().year}&code=&rule=&title=&number=&section=&Search=Search"
self.base_path = ["placeholder"]
self.back_scrape_iterable = [1]
self.back_scrape_iterable = [2024]

def _download_backwards(self, d: date) -> None:
"""Sets the URL for the backwards download based on the given date.
def _download_backwards(self, year) -> None:
"""Sets the URL for the backwards download based on the given year.
:param d: Just a placeholder value
:return: None
"""
self.url = "https://apps.maine.edu/SuperiorCourt/show_list.jsp?plaintiff=&defendant=&year=&code=&rule=&title=&number=&section=&Search=Search"
self.url = f"https://apps.maine.edu/SuperiorCourt/show_list.jsp?plaintiff=&defendant=&year={year}&code=&rule=&title=&number=&section=&Search=Search"

def _process_html(self) -> None:
"""Processes the HTML content and extracts case information.
Expand Down

0 comments on commit ebaf087

Please sign in to comment.