Skip to content

A barebones copy of Marshall Project's "Next to Die" -- A Flask app with some data collection scripts

Notifications You must be signed in to change notification settings

datademofun/deathpenalty-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Death Penalty Tracker

A Flask app built from web-scraped data.

To run the basic app

Clone this repo into some directory:

git clone https://github.com/datademofun/deathpenalty-tracker.git
cd deathpenalty-tracker
python app.py

To interact with the data

So, you don't have to worry about doing any web scraping.

But you still need to know where the data comes from, and what the looks like when it's delivered to the app. So jump into ipython (from the top directory).

The data-munging scripts are in the datafoo directory. You shouldn't have to deal with datafoo/scrapes unless you really want to know how the sausage is made.

from datafoo import easyfetch
from datafoo import getfacts

upcoming_executions = easyfetch.upcoming_executions()
past_executions = easyfetch.historical_executions()

About

A barebones copy of Marshall Project's "Next to Die" -- A Flask app with some data collection scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published