Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Latest commit

 

History

History
49 lines (27 loc) · 1.05 KB

File metadata and controls

49 lines (27 loc) · 1.05 KB

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:

./parser.rb

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:

sudo fig up parser

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.)