To fetch and parse Florida election results for McClatchy markets to elex-format JSON
Switch branches/tags
Nothing to show
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.
Broward.py
Dade.py
Florida.py
LICENSE
Manatee.py
Monroe.py
PalmBeach.py
README.md
calculations.py
clarityparser.py
composite_csvs.py
configuration.py
missionControl.sh
requirements.txt

README.md

This is an effort to download Florida election results in near-real time, and convert them into the Elex format. This was a joint effort between the Palm Beach Post and the Miami Herald. Those with questions can email Mike Stucka at mstucka@pbpost.com and Caitlin Ostroff at costroff@mcclatchydc.com.

This is an effort to parse county-level results for Miami-Dade, Broward, Monroe and Manatee. It also pulls from the state's county-wide file.

Setup: Install the requirements

$ pip install -r requirements.txt

The Files:

  • bash missionControl.sh runs the scrapers and the parsers to pull election results
    • python Dade.py Dade County scraper
    • python Broward.py Broward County scraper
    • python Monroe.py Monroe County scraper
    • python Manatee.py Manatee County scraper
    • python composite_csvs.py Merges all of the county results into one Elex-formatted csv and spits out resultscomposite.json. This currently commented out becasue the Herald wound up not using it.
    • python calculations.py Does all of the math for the races and spits out stateagg.json and countyagg.json for an aggregate count of the races

The Data

Data is stored in the /snapshots directory followed by the county name for each