GithubHelp home page GithubHelp logo

consent's Introduction

US Government Consent

The data is scraped using unitedstates/congress.

Running Code

Beginners

If you don't really program or anything, there are some prerequisits you'll need to install. I'm assuming you're using a Mac, or at least you better be! :P

Open up your "Terminal" application. Its in your Utilities folder. Then pase the following command:

xcode-select --install

This will install the "commandline tools" for your Mac. you'll have to go though some installation instructions. All this stuff comes from Apple. Its basically the tools used to build computers and programs.

Next we're going to install homebrew, a package manager for Mac software and pip a package manager for python libraries (python is a programming language).

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
easy_install pip

Thats basically it, now move on to the develop instalation instructions. Note that everything will be run in Terminal. And command that starts with sudo will require your password to install.

Developers

To download the dataset:

# install some requirements
brew install wget
sudo pip install virtualenv
sudo pip install virtualenvwrapper

# install pythong dependencies in a virtual environment
cd congress
virtualenv congress
. ./congress/bin/activate
pip install -r requirements.txt

# download voting data
sh ./scripts/votes.sh

To run the example and generate the histogram plot and play around with the data:

sudo pip install pyramda
sudo pip install numpy
sudo pip install matplotlib
python -i consent.py

Most Recent Data

Rebase against the latest version of the unitedstates/congress scraper:

git remote add upstream [email protected]:unitedstates/congress.git
git rebase remote upstream/master

consent's People

Contributors

boblannon avatar ccorcos avatar crdunwel avatar dcloud avatar dwillis avatar gphemsley avatar hugovk avatar jamesturk avatar jonathanstrong avatar joshdata avatar konklone avatar lorien avatar paultag avatar plantfansam avatar richardbx avatar tribble avatar willvanwazer avatar wilson428 avatar

Watchers

 avatar  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.