Skip to content

wrrrrn/undertheinfluence

 
 

Repository files navigation

UnderTheInfluence

UnderTheInfluence is a web application developed to help track the influence of lobbying in politics.

We use data from:

We don’t currently import from wikidata (only indirectly via EveryPolitician) but we should because it’s brilliant.

This project is built in Django 1.8 and uses Wagtail CMS, Django REST Framework and other cool open source products.

Dependencies

UnderTheInfluence requires:

Installation

  • Fetch this repo and all submodules

    git clone --recursive https://github.com/spudmind/undertheinfluence.git
    
  • Install the required python packages

    pip install -r requirements.txt
    
  • Copy the example config; update it as required

    cp conf/general.example.yml conf/general.yml
    
  • Fetch javascript dependencies with bower

    python manage.py bower_install
    
  • Migrate the database

    python manage.py migrate
    

Importing data

This is a manual process at the moment :( Check the various management commands in datafetch/management/commands. Roughly you should run:

python manage.py import_parlparse --since 2010

python manage.py import_ministers --since 2010

# this is slow because it downloads lots of big images
python manage.py import_everypolitician

# electoral commission data
python manage.py import_ec

# current APPC register
python manage.py import_appc

Running a local server

python manage.py runserver

Deployment

See: http://github.com/spudmind/uti-deploy

About

Tracking influence in UK politics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.3%
  • HTML 10.8%
  • JavaScript 1.4%
  • CSS 0.5%