Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikparuchuri/political-positions
Analyze politics.
https://github.com/vikparuchuri/political-positions
Last synced: 15 days ago
JSON representation
Analyze politics.
- Host: GitHub
- URL: https://github.com/vikparuchuri/political-positions
- Owner: VikParuchuri
- License: apache-2.0
- Created: 2013-07-29T20:58:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-20T10:22:43.000Z (over 9 years ago)
- Last Synced: 2024-10-12T13:45:36.968Z (about 1 month ago)
- Language: Python
- Size: 783 KB
- Stars: 14
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.