Permalink
Browse files

shapes

  • Loading branch information...
1 parent 4d2ce6d commit d953e89e12a3fd81ab57aea3630b26754e9a9811 @tlevine committed Feb 25, 2013
Oops, something went wrong.
@@ -1,3 +1,5 @@
#!/bin/sh
-[ -e county.json ] || wget -O county.json 'http://apps.washingtonpost.com/data/politics/elections/api/v1/results/winners/?format=json&office_name_slug=president&reporting_unit_type=county&polling_date=2012-11-06'
+[ -e county-results.json ] || wget -O county-results.json 'http://apps.washingtonpost.com/data/politics/elections/api/v1/results/winners/?format=json&office_name_slug=president&reporting_unit_type=county&polling_date=2012-11-06'
+
+[ -e county-shapes.json ] || wget -O county-shapes.json 'http://www.washingtonpost.com/wp-srv/special/politics/election-map-2012/data/counties.json'
@@ -1,9 +1,7 @@
#!/usr/bin/env python2
import json
-f = open('county.json')
-county = json.load(f)
-f.close()
-del(f)
+county_shapes = json.load(open('county-shapes.json'))
+county_results = json.load(open('county-results.json'))
-# county['objects']['president']
+#county['objects']['president'][county_shape['objects'][0]['pr']['f']]

0 comments on commit d953e89

Please sign in to comment.