Open grossir opened 1 month ago
The following returned attributes from juriscraper scrapers are not used on courtlistener:
These require easy changes (1-2 lines) to be used in the models:
lower_court
Docket.appeal_from_str
disposition
OpinionCluster.disposition
cause
Docket.cause
These require more work:
lower_court_numbers
lower_court_judges
OriginatingCourtInformation...
For these, I find no model on CL, nor a direct reference when using string search
docket_attachment_numbers
docket_document_numbers
adversary_numbers
divisions
If not used anywhere, we should probably delete them, since they are introducing noise
Code on courtlistener that uses the scraped attributes to build objects: https://github.com/freelawproject/courtlistener/blob/c8f712754ff7041235df617e6351accf4b6b3754/cl/scrapers/management/commands/cl_scrape_opinions.py#L78C1-L137C6
Code on juriscraper that defines the attributes is on OpinionSite and OpinionSiteLinear https://github.com/grossir/juriscraper/blob/92d27210adebfe7efa3b5ff2777667d3cd0de78f/juriscraper/OpinionSite.py#L18-L43
This is a good opportunity to support some extra fields both on Courtlistener and Juriscraper I propose to add these:
The following returned attributes from juriscraper scrapers are not used on courtlistener:
These require easy changes (1-2 lines) to be used in the models:
lower_court
goes toDocket.appeal_from_str
disposition
goes toOpinionCluster.disposition
cause
goes toDocket.cause
, but I don't know if it is a PACER reserved fieldThese require more work:
lower_court_numbers
andlower_court_judges
goes toOriginatingCourtInformation...
For these, I find no model on CL, nor a direct reference when using string search
docket_attachment_numbers
docket_document_numbers
adversary_numbers
divisions
If not used anywhere, we should probably delete them, since they are introducing noise
Code on courtlistener that uses the scraped attributes to build objects: https://github.com/freelawproject/courtlistener/blob/c8f712754ff7041235df617e6351accf4b6b3754/cl/scrapers/management/commands/cl_scrape_opinions.py#L78C1-L137C6
Code on juriscraper that defines the attributes is on OpinionSite and OpinionSiteLinear https://github.com/grossir/juriscraper/blob/92d27210adebfe7efa3b5ff2777667d3cd0de78f/juriscraper/OpinionSite.py#L18-L43