$ git clone git@github.com/mmaelzer/http-bench$ brew install wrk
| #!/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: |