openelections-data-ny icon indicating copy to clipboard operation
openelections-data-ny copied to clipboard

County-level results parsing

Open dwillis opened this issue 8 years ago • 9 comments

Convert presidential, statewide and state legislative race results into CSV files from the original PDFs or Excel spreadsheets produced by the state (use whichever is easiest). Include primary, general and special elections for those offices.

The names of the CSV files should have the following format: yymmdd__ny__general.csv for general elections and yymmdd__ny__primary.csv for primaries.

We're interested in results for all federal and state offices, but if you want to generate files for the entire file, that's fine. The CSV files should have at least these fields: county, office, district, party, candidate, votes

We use Python and Tabula for the most part, but you can use whatever gets the job done, and we welcome contributions of parsers and other utilities.

dwillis avatar Dec 28 '16 16:12 dwillis

I'll pitch in here @dwillis

RedOakMark avatar Dec 28 '16 21:12 RedOakMark

Thanks @RedOakMark! I'm grabbing 2000, but the others are wide open.

dwillis avatar Dec 28 '16 21:12 dwillis

Working on 2016 to start with just to make sure I get the formatting down.

RedOakMark avatar Dec 28 '16 21:12 RedOakMark

@dwillis do you usually combine Write Ins into one selection, or keep them all separate?

RedOakMark avatar Dec 28 '16 21:12 RedOakMark

Count me in for 2004:2006 to start. I'll submit a pull request when I complete all three years.

ursulams avatar Jan 01 '17 15:01 ursulams

@dwillis I'll give 2008 a try!

solumos avatar Feb 10 '17 19:02 solumos

@dwillis It seems like 2016 data is in the repo but not showing on the website: http://www.openelections.net/results/#ny

Is there some further processing needed?

AlJohri avatar Oct 29 '17 00:10 AlJohri

Hey @AlJohri, yes, we need to implement NY in the core repository. Closest state in terms of similar data is probably Oregon.

dwillis avatar Oct 29 '17 01:10 dwillis

Starting 2002 excepting Onondaga county. No 2003 statewide races to parse I think.

ursulams avatar Feb 07 '18 01:02 ursulams