by michaelmulley

michaelmulley / openparliament

Keeping tabs on Canada's Parliament

208 Stars 37 Forks Last release: Not found GNU Affero General Public License v3.0 844 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

A site that scrapes and republishes information on Canada's House of Commons.


Code is released under the AGPLv3 (see below). However, any site you create using this code cannot use the name or logo, except as acknowledgement.

Copyright (C) 2017 Michael Mulley (

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.


This guide briefly covers a local development install. These instructions aren't suitable for a live, online instance.

You need Python 2.6 or 2.7. If you want search to work, you'll need Solr 3.5+.

Environment setup

You should have virtualenv and pip installed. Create a new virtualenv, and install dependencies:

pip install -r requirements.txt


The site's pretty useless without some data. Download a dump of the openparliament data from


. Customize it as necessary (though it should work out of the box).


python migrate
to ensure the database schema is up-to-date.

Start the development server

python runserver

If things went well, you should now be able to access your own instance of openparliament at

The site is built around scrapers, and various jobs are available to scrape data. See
for a list of jobs; invoke them via, for example, job twitter
. (Please be polite and don't scrape sites, especially sites, unnecessarily.)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.