datademofun / deathpenalty-tracker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:CSS 50.3%Language:HTML 41.6%Language:Python 4.3%Language:Groff 3.7%