Permalink
Browse files

Suzanne Bonamici

  • Loading branch information...
1 parent 8bf6175 commit b3a6d53df0200df147883daac365bd252947734b @jamesturk jamesturk committed Feb 8, 2012
Showing with 1 addition and 57 deletions.
  1. +1 −0 legislators/legislators.csv
  2. +0 −57 legislators/update_legislators.py
@@ -93,6 +93,7 @@
"Rep","Larry","","Bucshon","","","R","IN","8","1","M","202-225-4636","202-225-3284","http://bucshon.house.gov/","","1123 Longworth House Office Building","B001275","120335","H0IN08114","412427","N00031227","RepLarryBucshon","http://www.opencongress.org/wiki/Larry_Bucshon","","RepLarryBucshon","","","05/31/1962"
"Rep","Ann","","Buerkle","","","R","NY","25","1","F","202-225-3701","202-225-4042","http://buerkle.house.gov/","","1630 Longworth House Office Building","B001276","127047","H0NY25078","412456","N00031640","RepBuerkle","http://www.opencongress.org/wiki/Ann_Marie_Buerkle","","","","","05/08/1951"
"Sen","Richard","","Blumenthal","","","D","CT","Junior Seat","1","M","202-224-2823","","http://www.blumenthal.senate.gov","http://www.blumenthal.senate.gov/contact/","702 Hart Senate Office Building","B001277","1568","S0CT00177","412490","N00031685","SenBlumenthal","http://www.opencongress.org/wiki/Richard_Blumenthal","http://www.youtube.com/SenatorBlumenthal","dickblumenthal","","III","02/13/1946"
+"Rep","Suzanne","","Bonamici","","","D","OR","1","1","F","","","http://bonamici.house.gov/","https://bonamici.house.gov/contact-me","2338 Rayburn House Office Building","B001278","59641","H2OR01133","412501","N00033474","","http://www.opencongress.org/wiki/Suzanne_Bonamici","","","","","10/14/1954"
"Rep","Ken","S.","Calvert","","","R","CA","44","1","M","202-225-1986","202-225-2004","http://calvert.house.gov/","http://calvert.house.gov/awenhnjafe.asp","2269 Rayburn House Office Building","C000059","26777","H2CA37023","400057","N00007099","KenCalvert","http://www.opencongress.org/wiki/Ken_Calvert","http://www.youtube.com/RepKenCalvert","70063393423","","","06/08/1953"
"Rep","David","Lee","Camp","","Dave","R","MI","4","1","M","202-225-3561","202-225-9679","http://camp.house.gov/","http://camp.house.gov/WriteRep.aspx","341 Cannon House Office Building","C000071","26911","H0MI10071","400058","N00008086","RepDaveCamp","http://www.opencongress.org/wiki/David_Lee_Camp","http://www.youtube.com/DaveCampYT","repdavecamp","","","07/09/1953"
"Rep","Chris","","Cannon","","","R","UT","3","0","M","","","","","","C000116","393","H6UT03042","400059","N00006349","","http://www.opencongress.org/wiki/Chris_Cannon","","","","","10/20/1950"
@@ -8,8 +8,6 @@
import string
from xml.dom import minidom
import lxml.html
-from votesmart import votesmart, VotesmartApiError
-votesmart.apikey = '496ec1875a7885ec65a4ead99579642c'
STATES = ['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA',
'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA',
@@ -52,61 +50,6 @@ def get_legislators(self, **kwargs):
if cond:
yield leg
- def add_legislator_from_pvs(self, official, bioguide_id):
- person = {}
- # get basic information
- id = person['votesmart_id'] = official.candidateId
- person['firstname'] = official.firstName
- person['middlename'] = official.middleName
- person['lastname'] = official.lastName
- person['name_suffix'] = official.suffix
- person['nickname'] = official.nickName
- person['title'] = official.title[0:3]
- state = person['state'] = official.officeStateId
- district = official.officeDistrictName
- if district == 'Jr':
- district = 'Junior Seat'
- elif district == 'Sr':
- district = 'Senior Seat'
- person['district'] = district
- person['party'] = official.officeParties[0]
-
- # get information from address
- try:
- offices = votesmart.address.getOffice(id)
- for office in offices:
- if office.state == 'DC':
- person['congress_office'] = office.street
- person['phone'] = office.phone1
- person['fax'] = office.fax1
- except VotesmartApiError:
- pass
-
- # get information from web address
- webaddr_re = re.compile('.+(house|senate)\.gov.+')
- try:
- webaddrs = votesmart.address.getOfficeWebAddress(id)
- for webaddr in webaddrs:
- if webaddr.webAddressType == 'Website' and webaddr_re.match(webaddr.webAddress):
- person['website'] = webaddr.webAddress
- elif webaddr.webAddressType == 'Webmail' and webaddr_re.match(webaddr.webAddress):
- person['webform'] = webaddr.webAddress
- except VotesmartApiError:
- pass
-
- # get information from bio
- bio = votesmart.candidatebio.getBio(id)
- if bio.gender:
- person['gender'] = bio.gender[0]
- person['crp_id'] = bio.crpId
-
- # in_office
- person['in_office'] = '1'
-
- person['bioguide_id'] = bioguide_id
- self.legislators[bioguide_id] = person
-
-
def compare_to(oldfile, newfile, approved_edits=None):
"""
compare two csv files and allow for copying changes from newfile into

0 comments on commit b3a6d53

Please sign in to comment.