Rails API only backend for scraping and creating a Postgres database of OSCN data. Leverages the oscn_scraper gem to scrape data and return as json.
TODO - Create sample .env file, Instructions for booting up
You can configure the following ENV variables:
Comma separated string of the county names. The application uses the several of the DISTRICT COURT REPORTS to determine what cases to update and what new cases have been filed. Therefore, only the following counties are available:
Adair,Canadian,Cleveland,Comanche,Ellis,Garfield,Logan,Oklahoma,Payne,Pushmataha,Roger Mills,Rogers,Tulsa
Example
COUNTIES=Tulsa,Oklahoma
Comma separated string of Case type abbreviations:
Example
CASE_TYPES_ABBREVIATION=CF,CM,TR,TRI,AM,CPC,DTR # default
Number of requests to send to OSCN per minute
OSCN_THROTTLE=120
Number of threads to run concurrently
OSCN_CONCURRENCY=120 # default
MAX_REQUESTS, MEDIUM_PRIORITY, LOW_PRIORITY, DAYS_AGO, DAYS_AHEAD
High Priority Cases - Any case that has appear on the docket in the past 7 days will be scraped nightly
Medium Priority Cases - Any open case (closed_on
= nil
). Scrapes the oldest first.
Low Priority Cases - Closed cases that likely will not be updated as often.