Skip to content

Commit

Permalink
Updated to work with the newer version of openS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ale0x78 committed Sep 25, 2017
1 parent 389f758 commit f5782d4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.csv

31 changes: 18 additions & 13 deletions data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,26 @@
"Scott Tim","9476","75"
"Inhofe James M","7213","100"
"Reed Jack","5566","25"
"Toomey Pat","4554724","75"
"Burr Richard","2636703","75"
"Portman Rob","1517051","100"
"Johnson Ron","1316985","100"
"Toomey Pat","4222894","75"
"Burr Richard","2668065","75"
"Portman Rob","1572508","100"
"Johnson Ron","1343932","100"
"McCain John","1255184","88"
"Blunt Roy","665634","100"
"Blunt Roy","713722","100"
"Shelby Richard C","480929","83"
"Isakson Johnny","261822","100"
"Murkowski Lisa","108018","88"
"Bennet Michael F","44416","63"
"Murray Patty","24055","38"
"Kaine Tim","16029664","75"
"Brown Sherrod","11753260","50"
"Isakson Johnny","287083","100"
"Murkowski Lisa","113864","88"
"Bennet Michael F","46443","63"
"Murray Patty","24054","38"
"Boozman John","16106","88"
"Moran Jerry","14478","88"
"Lankford James","5992","88"
"Hoeven John","3551","100"
"Thune John","1341","100"
"Kaine Tim","16031882","75"
"Brown Sherrod","11754981","50"
"Baldwin Tammy","10725266","63"
"Tester Jon","6046591","50"
"Tester Jon","6092337","50"
"Nelson Bill","4274077","63"
"Heller Dean","4177848","100"
"Heinrich Martin","3105320","38"
Expand All @@ -59,7 +64,7 @@
"Hatch Orrin G","158462","100"
"Stabenow Debbie","116263","63"
"Cruz Ted","66308","100"
"Feinstein Dianne","22908","63"
"Feinstein Dianne","35408","63"
"Gillibrand Kirsten","17934","25"
"Cardin Ben","10689","50"
"Klobuchar Amy","9440","63"
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import csv
from time import sleep
URL = "https://www.opensecrets.org/outsidespending/nonprof_cands.php"
open_secret_urls = ["https://www.opensecrets.org/outsidespending/nonprof_cands.php?cycle=2014","https://www.opensecrets.org/outsidespending/nonprof_cands.php","https://www.opensecrets.org/outsidespending/nonprof_cands.php?cycle=2012"]
open_secret_urls = ["https://www.opensecrets.org/outsidespending/nonprof_cands.php?cycle=2014","https://www.opensecrets.org/outsidespending/nonprof_cands.php?cycle=2016","https://www.opensecrets.org/outsidespending/nonprof_cands.php?cycle=2012"]
CoC_url = "https://www.uschamber.com/how-they-voted/2016"
# Url is https://www.opensecrets.org/outsidespending/nonprof_cands.php
DEBUG = True
Expand Down Expand Up @@ -118,4 +118,4 @@ def main():
write(total_names,total_cont,total_votes)
print(len(total_names))

main()
main()

0 comments on commit f5782d4

Please sign in to comment.