datamade/chicago-municipal-elections

Pull data from http://cdp.northwestern.edu

Closed this issue · 0 comments

curl 'http://cdp.northwestern.edu/database/graphql' -H 'Host: cdp.northwestern.edu' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://cdp.northwestern.edu/database/race/2015-02-15+10017/maps/precinct' -H 'content-type: application/json' -H 'origin: http://cdp.northwestern.edu' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data '{"query":"query RaceMap($raceID: ID!, $year: Int!, $level: LEVEL!) {\n  raceMapColors(id: $raceID, level: $level)\n  geojson(year: $year, level: $level)\n}\n","variables":{"raceID":"2015-02-15+10017","year":2015,"level":"PRECINCT"},"operationName":"RaceMap"}'

It's a graphql endpoint. This looks relevant: http://requester.org/#graphql