codefortulsa / courtbot-library

Generic Court Scraper for Courbot system use
3 stars 6 forks source link

Court Scraping utilities

A python library for scraping case information from court systems.

Development Install

  1. Create and activate a Python 3.7.3 virtual env
  2. git clone git@github.com:codefortulsa/courtbot-library.git
  3. cd courtbot-library
  4. pip install -e .

Usage

Install with pip install courtbot

Adding a court

Require properties (so far):

Case Object

The case object requires:
events:  a list of dictionaries which contain a 'date' and 'description'
     {'date': 'Wednesday, May 27, 2020 at 9:00 AM',
      'description': 'DISTRICT COURT ARRAIGNMENT'}

Run test scripts

or with ipdb:

- `pytest -s tests/`

specify a test:

Deployment steps

  1. python3 setup.py sdist bdist_wheel
  2. twine upload dist/*