This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# Fetches data from http://projects.fivethirtyeight.com/2016-election-forecast/summary.json, | |
# parses the results using python, and prints the polls-only forecast results in the format: | |
# "{STATE} D {PROBABILITY} R {PROBABILITY}" | |
# | |
# The script takes an optional argument that specifies an individual two letter abbreviation (case insensitive) | |
# of a U.S. state. By default, the state is US which returns the national results. | |
# | |
# Examples: |