Skip to content

Instantly share code, notes, and snippets.

View phillipsm's full-sized avatar

Matthew Phillips phillipsm

View GitHub Profile
$ python process.py
CRAIG ELTON GILLEN, 20
White Male from SPRING HILL, IA
Booked at 7/6/2015 11:51 AM
JEREMY MONTEZ AMERISON SMITH, 27
Black Male from CLIVE, IA
Booked at 7/6/2015 11:45 AM
.
time.sleep(1)
@phillipsm
phillipsm / gist:8afdcf295b90691810e5
Created July 14, 2015 20:36
Python 3 version of Journalist's Resource Tip Sheet web scraping script
import requests, time
from bs4 import BeautifulSoup
# We've now imported the two packages that will do the heavy lifting
# for us, reqeusts and BeautifulSoup
# This is the URL that lists the current inmates
# Should this URL go away, and archive is available at
# http://perma.cc/2HZR-N38X
url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/'