Comments (6)
sorted by:
You're viewing a single comment thread. View all comments, or full comment thread.
1
gbolcer 1 point ago +1 / -0

Pede data does have this information: Votes2016 (Data.Races.Counties) per counties Also for 2012.

(Sorry, I can't get the formatting right. Each wget should be on a newline).

wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/alabama/president.json -O alabama.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/alaska/president.json -O alaska.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/arizona/president.json -O arizona.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/arkansas/president.json -O arkansas.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/california/president.json -O california.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/colorado/president.json -O colorado.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/connecticut/president.json -O connecticut.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/delaware/president.json -O delaware.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/florida/president.json -O florida.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/georgia/president.json -O georgia.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/hawaii/president.json -O hawaii.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/idaho/president.json -O idaho.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/illinois/president.json -O illinois.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/indiana/president.json -O indiana.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/iowa/president.json -O iowa.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/kansas/president.json -O kansas.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/kentucky/president.json -O ketucky.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/louisiana/president.json -O louisiana.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/maine/president.json -O maine.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/maryland/president.json -O maryland.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/massachusetts/president.json -O massachusetts.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/michigan/president.json -O michigan.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/minnesota/president.json -O minnesota.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/mississippi/president.json -O mississippi.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/missouri/president.json -O missouri.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/montana/president.json -O montana.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/nebraska/president.json -O nebraska.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/nevada/president.json -O nevada.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/new-hampshire/president.json -O new-hampshire.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/new-jersey/president.json -O new-jersey.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/new-mexico/president.json -O new-mexico.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/new-york/president.json -O new-york.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/north-carolina/president.json -O north-carolina.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/north-dakota/president.json -O north-dakota.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/ohio/president.json -O ohio.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/oklahoma/president.json -O oklahoma.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/oregon/president.json -O oregon.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/pennsylvania/president.json -O pennsylvania.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/rhode-island/president.json -O rhode-island.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/south-carolina/president.json -O south-carolina.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/south-dakota/president.json -O south-dakota.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/tennessee/president.json -O tennessee.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/texas/president.json -O texas.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/utah/president.json -O utah.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/vermont/president.json -O vermont.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/virginia/president.json -O virginia.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/washington/president.json -O washington.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/west-virginia/president.json -O west-virginia.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/wisconsin/president.json -O wisconsin.json wget -c https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/wyoming/president.json -O wyoming.json

1
gte2723 [S] 1 point ago +1 / -0

Hi, I have the 2020 data from a .rar file, where is the 2016 Json data housed?

Replacing the above links with 2016-11-08 doesn't work.

Hopefully this data is accurate https://github.com/tonmcg/US_County_Level_Election_Results_08-20

1
gbolcer 1 point ago +1 / -0

Rar file should contain the same info. The 2020-11-03 is the date of the race, not the date of the data which is in the Meta.Timestamp(Meta) field. The internal json includes the updates and also the 2012 and 2016 summaries. Inside the json there is a json object: Votes2016 (Data.Races.Counties), thought it looks like the totals by county, not the timeseries.

Anyways, that github looks like an easier way to extract the data, so it looks like you are on the right track.

1
gte2723 [S] 1 point ago +1 / -0

thanks, is there a centralized location that has a registered voter count for each election year per each location (fips) ?