Skip to content
Convert Election Markup Language (EML) to csv
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
parse_eml.py

README.md

Improved version here

Election Markup Language (EML) to csv converter

Election Markup Language (EML) is an international standard for storing election data. The Dutch Electoral Council (Kiesraad) uses the EML format to publish election results per candidate, per polling station. For background information, see this blog post.

The script parse_eml.py converts EML files from the Kiesraad to csv files.

Getting started

  • Create a project folder with subfolders data and script
  • Download election results here, unzip, and store in the data folder.
  • Run parse_eml.py from the script folder.
  • The csv files will be stored in data/csv.

Caveats

  • The script appears to work for Lower House (TK), Provincial Council (PS) and City Council (GR) election results, but not for referendums and Senate (EK) election results.
  • I have no idea whether non-Dutch election results in EML format can be parsed with this script.
  • Please check the results; they are not guaranteed to be accurate.
You can’t perform that action at this time.