Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Analyze politics.
Python R PostScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
crawler
formatters
inputs
tasks
tests
workflows
.gitignore
113_frame.csv
Blank_US_Map.svg
LICENSE.txt
NOTICE.txt
README.md
__init__.py
complete_frame.csv
make_matrix.py
manage.py
most_radical.png
most_radical.svg
polarization.eps
polarization.png
polarization.svg
requirements.txt
senate.eps
senate.png
senate.svg
senate_analyzer.R

README.md

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.

Something went wrong with that request. Please try again.