Skip to content
data for national legislatures worldwide
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github fixup: ISSUE_TEMPLATE typo Jul 16, 2016
bin Remove 'indent heredocs' warnings from rubocop Mar 11, 2019
data UK (Commons): rebuild data May 21, 2019
docs remove all OCD-handling code Nov 9, 2018
lib Move 'legislature' methods onto MergedJSON Apr 9, 2019
rake_build Move 'legislature' methods onto MergedJSON Apr 9, 2019
rake_config rubocop -a rake_config/ Sep 24, 2018
rake_generate Don't create mapping file if it would be empty May 16, 2019
rake_report Handle having everyone matched to Wikidata Oct 13, 2018
scripts Always deploy when countries.json changes Mar 31, 2017
templates Reconiler: display occupation field if available Oct 13, 2016
test rubocop -a Apr 7, 2018
.gitignore Ignore generated position-filter html/js Apr 13, 2016
.rubocop.yml Set TargetRubyVersion to what we're actively using Apr 7, 2018
.rubocop_base.yml Exclude Rakefile namespaces from BlockLength cop Sep 24, 2018
.rubocop_todo.yml Fix rubocop RegexpLiteral warnings Mar 11, 2019
.travis.yml Run ruby 2.4.4 on travis Jan 31, 2019
CHANGES.md Document new term columns in CHANGES.md Aug 30, 2017
CONTRIBUTING.md add CONTRIBUTING.md explaining why no PRs please Jun 7, 2016
Gemfile Add 'reek' Mar 11, 2019
Gemfile.lock Update to csv-to-popolo 0.31 Apr 9, 2019
README.md Update readme to add line about EP being on hold Jul 2, 2019
Rakefile.rb Remove obsolete code from Rakefile Mar 11, 2019
countries.json Refresh countries.json May 15, 2019
rakefile_common.rb Remove unused @SOURCE_DIR variable Mar 11, 2019

README.md

The EveryPolitician project is currently on hold. See this blog post for more information.

everypolitician-data

This is the data repo for EveryPolitician. It contains the data powering EveryPolitician.org, and other sites such as Gender-Balance.org.

Want to use the data?

Want to contribute data?

This repo is where we store the data, but we have a process for adding it — please don't submit Pull Requests with data. Instead, if you know of data or data sources we are not using, please get in touch: here's how to contribute. The bottom line is: we use multiple online sources, and we regularly retrieve data from those sources so we can automatically keep up-to-date if and when they change. If you can help us by providing more sources, great!

This document is for developers actively working on the project, rather than consuming data from it.

Building the data for a legislature

  1. From within the directory for the legislature it should usually be enough to run bundle exec rake clean default.

    • To re-refetch the data from a given source first, set the REBUILD_SOURCE environment variable to something matching the filename of the required source: e.g. REBUILD_SOURCE=official bundle exec rake clean default

    • If you want to fetch fresh data from all existing sources, you can use bundle exec rake clobber default instead.

    • Note that if you're fetching any data from Morph, you'll also need to specify your morph.io API key in the environment variable MORPH_API_KEY, e.g. MORPH_API_KEY=my_secret_key bundle exec rake clean default

  2. Make sure that the changes look sensible, and then commit the new/refreshed data. Please commit human-edited files separately to data fetched from a remote source or generated as part of the build.

You can’t perform that action at this time.