Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msj committed Mar 15, 2024
1 parent 0378cfd commit 361e766
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions courtscraper/spiders/court_calls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from abc import ABC
from datetime import datetime, timedelta

from scrapy import Spider, Request
Expand All @@ -11,15 +10,15 @@
from scripts.hash import dict_hash


class CourtCallSpider(ABC, Spider):
class CourtCallSpider(Spider):
name = "courtcalls"
url = "https://casesearch.cookcountyclerkofcourt.org/CourtCallSearch.aspx"

def __init__(self, **kwargs):
self.failures = set()
super().__init__(**kwargs)

def nextBusinessDays(self, n):
def next_business_days(self, n):
"""Returns the dates of the next n business days."""

current_date = datetime.today()
Expand All @@ -36,7 +35,7 @@ def nextBusinessDays(self, n):
count += 1

def start_requests(self):
for date in self.nextBusinessDays(5):
for date in self.next_business_days(5):
yield Request(
CourtCallSpider.url,
meta={
Expand Down

0 comments on commit 361e766

Please sign in to comment.