Skip to content
Build and manage Popolo-compliant JSON for the Finnish Parliament
Ruby JavaScript Shell Makefile
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.
bin
data
voteit-transform
.gitignore
Gemfile
Gemfile.lock
README.md
coalitions.json
eduskunta.json
parties.json
people.json
posts.json

README.md

eduskunta-popolo

Build and manage Popolo-compliant JSON for the Finnish Parliament.


  1. Fetch the data from KansanMuisti
  • pushd data/kansanmuisti ; curl -K curlrc; popd
  • Optionally create pretty-printed versions for easier diffs (e.g. jq '.' member.json > member.pp.json)
  1. Generate the party JSON
  • bin/generate_party_list > parties.json
  1. Regenerate the people JSON
  • bin/generate_persons data/kansanmuisti/member.json > people.json
  1. Regenerate the coalitions JSON
  • bin/generate_coalitions > coalitions.json
  1. Build a complete set of JSON
  • bin/generate_popit_data > eduskunta.json
  1. Rebuild the PopIt
  • bin/repopulate_popit <APIKEY>

Fetch all the vote data

  • bin/find-sessions-with-votes.rb data/kansanmuisti/plenary*.pp.json | sh
You can’t perform that action at this time.