Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Political Positions

Overview

This repository is used for analysis of senate and other vote data.

This is licensed under the APACHE license, please see LICENSE.txt for details.

Installation

You will need to have python 2.7 installed, and ideally a virtualenv installed.

Then, you can do the following:

git clone git@github.com:VikParuchuri/political-positions
cd political-positions
Activate virtualenv if you are using one
pip install -r requirements.txt

Usage

After installing the requirements, you can do:

cd political-positions/crawler
scrapy crawl senate -o ../data/senate.json -t json

This will crawl the senate website and download voting data on senators.

Open and run the code in the make_matrix.py file to generate a csv from the json file.

Then, you can open the senate_analyzer.R script and run it to produce charts.

How to Contribute

Contributions are very welcome. The easiest way is to fork this repo, and then make a pull request from your fork.

Please contact vik dot paruchuri at gmail with any questions or issues.

About

Analyze politics.

Resources

License

Releases

No releases published

Packages

No packages published