openelections / openelections-data-ok

Pre-processed election results for Oklahoma
3 stars 4 forks source link

Convert 2008 PDF county-level results to CSV #1

Closed dwillis closed 6 years ago

dwillis commented 8 years ago

2008 elections have multiple PDFs for individual contests. You can either generate contest-specific CSV files or a single CSV file containing all offices.

The naming conventions for files are here.

Parsing scripts that dump PDFs to text and then parse them into a CSV should be named parser.py, unless you need multiples ones for specific offices or jurisdictions. There are examples of these (badly coded) in Oregon.

rshorey commented 7 years ago

I'm working on this one

rshorey commented 7 years ago

2 includes data for prez/house/sen/statehouse/statesen. There are also results there for "Corporation Commissioner" (I don't know what that is so I skipped, although this scraper should work for that) and several judges. For the judges it looks like they are up-down votes ("Should we keep Justice Willis?"), not votes between people. This scraper should be easy to fix to work with those if we want them.

dwillis commented 7 years ago

We should always keep Justice Willis, but it's fine to skip judicial contests for OpenElections. Let's keep the corporation commissioners; it's an important state agency with 3 statewide elected officials.