GitHub - codeformuenster/wahlprogramme2014: Wahlprogramme der Parteien zur Kommunalwahl 2014 in maschinenlesbarer Form.

Parse a party's agenda into elasticsearch.

Install

Install docker and fig.

Convert pdfs

Run

the old-school way

  • Install & run Elasticsearch
  • Install Ruby (>= 1.9)
  • Run bundle install

Then let the parser do its work:

This will import all files from the converted folder into elasticsearch.

via Docker

Start elasticsearch:

sudo fig up -d elasticsearch

Then let the parser do its work:

This will import all files from the converted folder into elasticsearch.

Note: The docker image for the parser will be built on the first run. This will take some time.

Generate JSON for the Wahlprogramm-Matrix

Generate agendas

ruby agendas.rb | json_reformat >json/agendas.json

(To run via Docker, just put sudo fig run parser in front of that.)