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.
You will need to have python 2.7 installed, and ideally a virtualenv installed.
Then, you can do the following:
git clone firstname.lastname@example.org:VikParuchuri/political-positions cd political-positions Activate virtualenv if you are using one pip install -r requirements.txt
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.