Code Monkey home page Code Monkey logo

ice-hold's Introduction

Scripts for researching ICE detainees in Tulsa

The Tulsa County Inmate Information Center website provides a page to scroll through a list of inmates. The dlm-inmates script retrieves all pages and also looks up inmate details. Inmates with an ICE hold are denoted by the 'TLS' number in their record.

The City Of Tulsa Jail Hub has information about inmates at the Tulsa City Jail for the past 90 days.

The CSV files created by these scripts includes a column to identify inmates on an ICE hold. The dlm-inmates file uses 'TLS' and includes a TLS record number. The tulsa_city_inmates file uses 'hold' and shows the last hold instructions on the inmates charges list.

Files

  • dlm-inmates.py: python script for saving iic.tulsacounty.org info to a csv
  • tulsa-jail.py: python script for saving www.cityoftulsa.org information
  • settings.py: details of the tulsa county url
  • _helpers.py: utilities for cleaning text
  • save_csv.py: function to validate columns and save data

Set up

  1. Create a Python 3.6.5 virtual env
  2. Clone this repo
  3. 'cd ice-hold'
  4. 'mkdir data' (this is ignored)
  5. 'pip install -r requirements.txt'

Usage

David L Moss Inmates:

  • 'python dlm-inmates.py'
  • creates a csv file in data/ called dlm_inmates.csv

City of Tulsa Jail:

  • 'python tulsa-jail.py'
  • creates a csv file in data/ called tulsa_city_inmates.csv

ice-hold's People

Contributors

jdungan avatar groovecoder avatar

Stargazers

nex avatar Brancen Gregory avatar

Watchers

John Whitlock avatar James Cloos avatar gleefulcoder avatar Carlos Moreno avatar Diana Varnes avatar  avatar

Forkers

maxwelldunn89

ice-hold's Issues

Remove unused columns from DLM data

The Tulsa County web page uses columns for links to details and printing.

These are the first and last column on the page.

Need to remove these before saving to the file.

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.