forked from freelawproject/juriscraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOralArgumentSite.py
36 lines (25 loc) · 980 Bytes
/
OralArgumentSite.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from AbstractSite import AbstractSite
class OralArgumentSite(AbstractSite):
"""Contains generic methods for scraping data. Should be extended by all
scrapers.
Should not contain lists that can't be sorted by the _date_sort function.
"""
def __init__(self):
super(OralArgumentSite, self).__init__()
self._opt_attrs = ['docket_numbers', 'judges']
self._req_attrs = ['case_dates', 'case_names', 'download_urls']
# For date sorting to work, case_dates must be the first item in _all_attrs.
self._all_attrs = self._req_attrs + self._opt_attrs
# Set all metadata to None
for attr in self._all_attrs:
self.__setattr__(attr, None)
def _get_download_urls(self):
return None
def _get_case_dates(self):
return None
def _get_case_names(self):
return None
def _get_docket_numbers(self):
return None
def _get_judges(self):
return None