GithubHelp home page GithubHelp logo

matt343 / odyssey-court-records-to-json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-austin/indigent-defense-stats

0.0 0.0 0.0 587 KB

A web scraper for collecting and processing public case records from sites using Tyler Technology's Odyssey court records database software.

License: MIT License

Python 100.00%

odyssey-court-records-to-json's Introduction

Tyler Technologies Odyssey court records scraper and parser

This is a scraper to collect and process public case records from the Tyler Technologies Odyssey County Records system. The intention is to gain insight and advocate for defendant's rights. A google search for "Copyright * Tyler Technologies" "Court Calendar" will show some other possible sites to scrape. You should just need to input parameters for the main page and a list of JOs and scrape any Odyssey page.

Tested with:

Installation

  1. Clone this repo.
    • git clone https://github.com/derac/Odyssey-Court-Records-to-JSON.git
  2. Navigate to it. (use venv if desired)
    • cd Odyssey-Court-Records-to-JSON
  3. Install libraries.
    • pip install -r requirements.txt

Usage

Use --help for command line parameter information.

  1. Scrape calendar and case data by JO and day.
    • python ./src/scraper.py
    • ./data/case_html/odyssey id.html
  2. Parse the case data into JSON files.
    • python ./src/parser.py
    • ./data/case_json/odyssey id.json
  3. Print some stats from the JSON.
    • python ./src/print_stats.py

Implementation Details

  • The session must visit the main page in order to access the calendar search page. To visit a case page, you must have visited a results page containing it.
  • hidden values are grabbed from the calendar page, NodeID and NodeDesc are grabbed from the main page location field.

Writing to s3 bucket

The command python3.8 src/combine_parsed.py will run a script to combine html files into a .json in an s3 bucket. Currently this is running daily on a shell script, on only 1000 files as an example to see schema for Athena.

TODO

  • Some Odyssey sites have a CAPTCHA on the calendar page. This can't beat that yet. Could implement 2Captcha or get input from user potentially.
  • The only bit that seems to break between sites is parsing party information. Need to recode this to work in a different way.

odyssey-court-records-to-json's People

Contributors

derac avatar newswim avatar normaljosh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.