Scrapes 2016 Presidential popular results from Wikipedia and computes a "fair" allocation of electoral votes
Jupyter Notebook
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A project for automatically scraping these Wikipedia articles:

They are scraped for the state-level popular vote results, and then the methodology of my blog post, Fair, Efficient State-wise Electoral College Vote Allocation, is applied.


The notebook was developed on Linux Mint, and the following instructions should be easily translatable to other Linux environments, or even any system that can run Anaconda.

  1. Install Anaconda.
  2. conda env create -f environment.yml
  3. source activate electoral-fair
  4. jupyter notebook
  5. Open the notebook files and run it, or play with it as you see fit. (That's the beauty of releasing this under open source license!)