Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vikparuchuri/political-positions

Analyze politics.
https://github.com/vikparuchuri/political-positions

Last synced: 15 days ago
JSON representation

Analyze politics.

Awesome Lists containing this project

README

        

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 [email protected]: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.