No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
inmates
.gitignore
README.md
both-jails.py
dlm-inmates.py
requirements.txt
settings.py
test.py
tulsa-jail.py

README.md

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