Skip to content

Convert Election Markup Language (EML) to csv

License

Notifications You must be signed in to change notification settings

BDSI-Utwente/EML-to-csv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert Election Markup Language (EML) to csv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.1%
  • R 8.9%