ft-interactive/french-election-2017-results

Name: french-election-2017-results

Owner: FT Interactive News

Description: Results data and tooling for the 2017 French Presidential election

Created: 2017-04-19 13:27:36.0

Updated: 2017-07-14 12:00:13.0

Pushed: 2017-05-11 11:00:29.0

Homepage: null

Size: 13369

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

 French Election data stuff

The codes used by Ministère Interieur are different from INSEE!

 To generate a translation table:
  1. Run npm run create-code-jsons

This assumes data/ contains a file called latest-qgis.csv, which is made by exporting to CSV the communes shapefile from https://www.data.gouv.fr/fr/datasets/decoupage-administratif-communal-francais-issu-d-openstreetmap/

You also need listeregdptcom.xml in data/.

  1. Run npm run create-translation-table

This will create code-translation-table.csv and government-to-insee.json

 To generate output
  1. wget mirror the results endpoint:
 --mirror --no-parent http://elections.interieur.gouv.fr/telechargements/PR2017/
  1. Run npm start to generate output JSON blob

  2. Run npm run create-winners-csv to generate winners output CSV


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.