Giter Site home page Giter Site logo

konklone / staffers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from propublica/staffers

0.0 2.0 0.0 13.06 MB

Interactive and searchable House staffer directory, based on House disbursement data.

Home Page: http://staffers.sunlightfoundation.com/

License: Other

staffers's Introduction

House Staff Directory

A staff directory for the House of Representatives, using data culled from the House' quarterly disbursement records.

The House publishes each quarter's data by the end of the following quarter, so the records will generally be 3-6 months out of date.

Setup

Depends on Ruby 1.8.7 - not tested on anything higher. This needs to be updated.

Install dependencies with bundler:

bundle install

Copy config.ru:

cp config.ru.example config.ru

Run with unicorn:

bundle exec unicorn

Loading new staff records

It's an old, blunt, violent process.

  1. Get the CSVs generated from the sunlightlabs/disbursements process.

  2. Put them into the data/ directory and run:

rake load:all
  1. Wait for an hour or more as the data is blown away and reloaded from scratch. It's not very efficient, and the website will show incomplete data for that time.

data/ expectations

The data/ directory expects four CSV files:

  • staffers.csv: Unique staffer names as they appear in the original disbursement data, and any standardizations or corrections to those titles.
  • titles.csv: Unique titles as they appear in the original disbursement data, and any standardizations or corrections to those titles.
  • offices.csv: Unique office names as they appear in the original disbursement data, and any standardizations or corrections to those titles. Expanded details for each office (committee ID, building, room, telephone number) are added by hand.
  • positions.csv: The "join table" that links staffer names, title names, and office names together as a "position" for each quarter.

Why not the Senate?

The Senate's expenditure data is published every 6 months, can be quite out of date, and is much more difficult to parse than the House's.

Our parser for the House is here. As of this writing, we don't have a working parser for Senate records.

License

Currently GPLv3.

staffers's People

Contributors

konklone avatar heyitsolivia avatar jcarbaugh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.