Skip to content

Instantly share code, notes, and snippets.

@Tkizzy
Created Mar 2, 2016
Embed
What would you like to do?
crashes pythonista....
import requests
import sys
if __name__ != "__main__":
from twitterImage import twitterBuiltIn as twit
print((sys.version))
#.....
class Candidacy(object):
def __init__(self):
self.apiKey = ''
self.stateCode = "CA"
#static Dicts for testing.
self.andTweetsStaticDict = { u'DarrellIssa': ([u"Judge gets it right. Can't force Apple to undermine users' privacy https://t.co/4uaV6n1k2A", u'Unlocking the iPhone would set a dangerous precedent for our right to privacy. Check out my op-ed in WIRED https://t.co/N35fzaw8LX', u'Remember that slippery slope everyone warned about if the FBI forced Apple to unlock the iPhone? https://t.co/pVMeDr2vIe #TechTuesday', u"RT @RepZoeLofgren: Gov't backdoor access to iPhone would undo years of progress in online security. Read my op-ed w/@DarrellIssa here: http\u2026", u"Judge gets it right. Can't force Apple to undermine users' privacy https://t.co/4uaV6n1k2A", u'Unlocking the iPhone would set a dangerous precedent for our right to privacy. Check out my op-ed in WIRED https://t.co/N35fzaw8LX', u'RT @WIRED: Opinion: Forcing Apple to hack that iPhone sets a dangerous precedent https://t.co/4IURimSBSF', u'Remember that slippery slope everyone warned about if the FBI forced Apple to unlock the iPhone? https://t.co/pVMeDr2vIe #TechTuesday'], u'http://pbs.twimg.com/profile_images/454338555456663552/phM7MZu5_normal.jpeg'), u'RepMikeHonda': ([u'"We do not want to make a mistake as nation who believes in the rule of law." to the @FBI Director about the #Apple case.'], u'http://pbs.twimg.com/profile_images/699984788933976065/JM9bUwRn_normal.jpg'), u'RepMimiWalters': ([u"About to go live on @KNX1070 to discuss today's @HouseJudiciary hearing on #Apple & the #FBI. Tune in! #AppleVsFBI https://t.co/vLGt6Z1Fpx", u"Tune into today's @HouseJudiciary hearing on encryption featuring the #FBI & #Apple starting @1PM. Watch live here: https://t.co/c8G6XkPA49", u'About to speak on @FoxNews on the debate between #Apple and the #FBI. Tune in! #AppleVsFBI https://t.co/5brNeT0cFm'], u'http://pbs.twimg.com/profile_images/568467816089546752/n3BHuNVi_normal.jpeg'), u'RepAnnaEshoo': ([u'ICYMI: My statement on the Apple court order. https://t.co/ssLWV4s9bV', u'My statement on the Apple court order: https://t.co/ssLWV4s9bV'], u'http://pbs.twimg.com/profile_images/621705739485233152/XOBUJmeN_normal.jpg'), u'RepBarbaraLee': ([u"RT @RepZoeLofgren: Gov't backdoor access to iPhone would undo years of progress in online security. Read my op-ed w/@DarrellIssa here: http\u2026"], u'http://pbs.twimg.com/profile_images/430378206353317888/3QKYak-Z_normal.jpeg'), u'RepTedLieu': ([u"RT @tedlieu: I commend court's rejection of #FBI & #DOJ in NY case where govt is compelling #Apple to take extraordinary actions. https://t\u2026", u'RT @tedlieu: Hack of #IRS records shows why weakening encryption hurts our national security, US businesses & YOU. #FBI #Apple https://t.co\u2026', u"My statement on #Apple's motion to vacate >> https://t.co/z6DVHWV3ax #APPLEvsFBI #Encryption #Privacy #Apple", u'ICYMI: My interview w/ @questCNN @richardquest on #APPLEvsFBI #Encryption #Privacy https://t.co/fXSRmuE1LT #Apple https://t.co/UbznFCpSDM', u"ICYMI: My interview w/ @CNBC @squawk on #AppleVsFBI #Encryption #Privacy. Here's why I agree w/ #Apple in this case: https://t.co/Ry5zjKhcRM", u'LIVE with @CNBC @SquawkStreet talking about #AppleVsFBI #Privacy #Encryption #Apple https://t.co/k34Y040DQp', u"RT @dnvolz: .@RepTedLieu to Comey: Don't use a law passed 87 years before invention of phone to force Apple to unlock iPhone https://t.co/a\u2026", u'RT @dnvolz: Scoop: @RepTedLieu sends letter to FBI Director Comey telling him to withdraw demand against Apple in unlocking case https://t.\u2026', u'Democratic lawmaker Ted Lieu asks FBI director to withdraw Apple unlocking case https://t.co/0Y1L7HznVT via @Reuters @RepTedLieu #AppleVsFBI'], u'http://pbs.twimg.com/profile_images/568758808978022400/2pH8o48y_normal.jpeg'), u'RepZoeLofgren': ([u"Gov't backdoor access to iPhone would undo years of progress in online security. Read my op-ed w/@DarrellIssa here: https://t.co/wMXYvNiRvE", u"Gov't backdoor access to iPhone would undo years of progress in online security. Read my op-ed w/@DarrellIssa here: https://t.co/wMXYvNiRvE"], u'http://pbs.twimg.com/profile_images/510125443094024192/eVbv3QDN_normal.jpeg') }
self.candidateStaticDict = {u'legislator': [{u'@attributes': {u'website': u'http://lamalfa.house.gov', u'fax': u'530-534-7800', u'birthdate': u'1960-07-02', u'office': u'CA01', u'cid': u'N00033987', u'twitter_id': u'RepLaMalfa', u'lastname': u'LAMALFA', u'feccandid': u'H2CA02142', u'webform': u'https://lamalfa.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Doug LaMalfa', u'phone': u'202-225-3076', u'facebook_id': u'', u'first_elected': u'2012', u'congress_office': u'322 Cannon House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/RepLaMalfa', u'bioguide_id': u'L000578', u'votesmart_id': u'29713'}}, {u'@attributes': {u'website': u'http://huffman.house.gov', u'fax': u'202-225-5163', u'birthdate': u'1964-02-18', u'office': u'CA02', u'cid': u'N00033030', u'twitter_id': u'RepHuffman', u'lastname': u'HUFFMAN', u'feccandid': u'H2CA06259', u'webform': u'https://huffman.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Jared Huffman', u'phone': u'202-225-5161', u'facebook_id': u'pages/foo/200227780116038', u'first_elected': u'2012', u'congress_office': u'1630 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/rephuffman', u'bioguide_id': u'H001068', u'votesmart_id': u'59849'}}, {u'@attributes': {u'website': u'http://garamendi.house.gov', u'fax': u'202-225-5914', u'birthdate': u'1945-01-24', u'office': u'CA03', u'cid': u'N00030856', u'twitter_id': u'RepGaramendi', u'lastname': u'GARAMENDI', u'feccandid': u'H0CA10149', u'webform': u'https://garamendi.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'John Garamendi', u'phone': u'202-225-1880', u'facebook_id': u'pages/foo/182567716746', u'first_elected': u'2009', u'congress_office': u'2438 Rayburn House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/garamendiCA10', u'bioguide_id': u'G000559', u'votesmart_id': u'29664'}}, {u'@attributes': {u'website': u'http://mcclintock.house.gov', u'fax': u'202-225-5444', u'birthdate': u'1956-07-10', u'office': u'CA04', u'cid': u'N00006863', u'twitter_id': u'RepMcClintock', u'lastname': u'MCCLINTOCK', u'feccandid': u'H8CA04152', u'webform': u'https://mcclintockforms.house.gov/forms/contact-form.shtml', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Tom McClintock', u'phone': u'202-225-2511', u'facebook_id': u'pages/foo/81125319109', u'first_elected': u'2008', u'congress_office': u'2331 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/McClintockCA04', u'bioguide_id': u'M001177', u'votesmart_id': u'9715'}}, {u'@attributes': {u'website': u'http://mikethompson.house.gov', u'fax': u'202-225-4335', u'birthdate': u'1951-01-24', u'office': u'CA05', u'cid': u'N00007419', u'twitter_id': u'RepThompson', u'lastname': u'THOMPSON', u'feccandid': u'H8CA01109', u'webform': u'https://mikethompson.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Mike Thompson', u'phone': u'202-225-3311', u'facebook_id': u'pages/foo/7109195747', u'first_elected': u'1998', u'congress_office': u'231 Cannon House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/CongressmanMThompson', u'bioguide_id': u'T000460', u'votesmart_id': u'3564'}}, {u'@attributes': {u'website': u'http://matsui.house.gov', u'fax': u'202-225-0566', u'birthdate': u'1944-09-25', u'office': u'CA06', u'cid': u'N00027459', u'twitter_id': u'DorisMatsui', u'lastname': u'MATSUI', u'feccandid': u'H6CA05195', u'webform': u'https://matsui.house.gov/email-representative-matsui', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Doris O Matsui', u'phone': u'202-225-7163', u'facebook_id': u'doris.matsui', u'first_elected': u'2005', u'congress_office': u'2311 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepDorisMatsui', u'bioguide_id': u'M001163', u'votesmart_id': u'28593'}}, {u'@attributes': {u'website': u'http://bera.house.gov', u'fax': u'202-226-1298', u'birthdate': u'1965-03-02', u'office': u'CA07', u'cid': u'N00030717', u'twitter_id': u'RepBera', u'lastname': u'BERA', u'feccandid': u'H0CA03078', u'webform': u'https://beraforms.house.gov/forms/writeyourrep/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Ami Bera', u'phone': u'202-225-5716', u'facebook_id': u'pages/foo/528662157146886', u'first_elected': u'2012', u'congress_office': u'1535 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/repamibera', u'bioguide_id': u'B001287', u'votesmart_id': u'120030'}}, {u'@attributes': {u'website': u'http://cook.house.gov', u'fax': u'', u'birthdate': u'1943-03-03', u'office': u'CA08', u'cid': u'N00034224', u'twitter_id': u'RepPaulCook', u'lastname': u'COOK', u'feccandid': u'H2CA08164', u'webform': u'https://cook.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Paul Cook', u'phone': u'202-225-5861', u'facebook_id': u'pages/foo/464458413604093', u'first_elected': u'2012', u'congress_office': u'1222 Longworth House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/RepPaulCook', u'bioguide_id': u'C001094', u'votesmart_id': u'58121'}}, {u'@attributes': {u'website': u'http://mcnerney.house.gov', u'fax': u'202-225-4060', u'birthdate': u'1951-06-18', u'office': u'CA09', u'cid': u'N00026926', u'twitter_id': u'RepMcNerney', u'lastname': u'MCNERNY', u'feccandid': u'H4CA11081', u'webform': u'https://mcnerney.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Jerry McNerney', u'phone': u'202-225-1947', u'facebook_id': u'pages/foo/215241308510238', u'first_elected': u'2006', u'congress_office': u'2265 Rayburn House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJerryMcNerney', u'bioguide_id': u'M001166', u'votesmart_id': u'29474'}}, {u'@attributes': {u'website': u'http://denham.house.gov', u'fax': u'202-225-3402', u'birthdate': u'1967-07-29', u'office': u'CA10', u'cid': u'N00031593', u'twitter_id': u'RepJeffDenham', u'lastname': u'DENHAM', u'feccandid': u'H0CA19173', u'webform': u'https://denham.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Jeff Denham', u'phone': u'202-225-4540', u'facebook_id': u'pages/foo/133714040028137', u'first_elected': u'2010', u'congress_office': u'1730 Longworth House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/repjeffdenham', u'bioguide_id': u'D000612', u'votesmart_id': u'28769'}}, {u'@attributes': {u'website': u'https://desaulnier.house.gov', u'fax': u'202-225-5609', u'birthdate': u'1952-03-31', u'office': u'CA11', u'cid': u'N00030709', u'twitter_id': u'RepDeSaulnier', u'lastname': u'DESAULNIER', u'feccandid': u'H0CA10073', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Mark Desaulnier', u'phone': u'202-225-2095', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'327 Cannon House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'D000623', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://pelosi.house.gov', u'fax': u'202-225-8259', u'birthdate': u'1940-03-26', u'office': u'CA12', u'cid': u'N00007360', u'twitter_id': u'NancyPelosi', u'lastname': u'PELOSI', u'feccandid': u'H8CA05035', u'webform': u'http://pelosi.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Nancy Pelosi', u'phone': u'202-225-4965', u'facebook_id': u'pages/foo/86574174383', u'first_elected': u'1987', u'congress_office': u'233 Cannon House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/nancypelosi', u'bioguide_id': u'P000197', u'votesmart_id': u'26732'}}, {u'@attributes': {u'website': u'http://lee.house.gov', u'fax': u'202-225-9817', u'birthdate': u'1946-07-16', u'office': u'CA13', u'cid': u'N00008046', u'twitter_id': u'RepBarbaraLee', u'lastname': u'LEE', u'feccandid': u'H8CA09060', u'webform': u'http://lee.house.gov/contact-the-office/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Barbara Lee', u'phone': u'202-225-2661', u'facebook_id': u'pages/foo/92190287786', u'first_elected': u'1998', u'congress_office': u'2267 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepLee', u'bioguide_id': u'L000551', u'votesmart_id': u'8315'}}, {u'@attributes': {u'website': u'http://speier.house.gov', u'fax': u'202-347-0956', u'birthdate': u'1950-05-14', u'office': u'CA14', u'cid': u'N00029649', u'twitter_id': u'RepSpeier', u'lastname': u'SPEIER', u'feccandid': u'H8CA12171', u'webform': u'https://forms.house.gov/speier/webforms/email_jackie.shtml', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Jackie Speier', u'phone': u'202-225-3531', u'facebook_id': u'pages/foo/99332606976', u'first_elected': u'2008', u'congress_office': u'2465 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/jackiespeierca12', u'bioguide_id': u'S001175', u'votesmart_id': u'8425'}}, {u'@attributes': {u'website': u'http://swalwell.house.gov', u'fax': u'', u'birthdate': u'1980-11-16', u'office': u'CA15', u'cid': u'N00033508', u'twitter_id': u'RepSwalwell', u'lastname': u'SWALWELL', u'feccandid': u'H2CA15094', u'webform': u'http://swalwell.house.gov/contact-me/email-eric/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Eric Swalwell', u'phone': u'202-225-5065', u'facebook_id': u'pages/foo/450130878375355', u'first_elected': u'2012', u'congress_office': u'129 Cannon House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/ericswalwell', u'bioguide_id': u'S001193', u'votesmart_id': u'129529'}}, {u'@attributes': {u'website': u'http://costa.house.gov', u'fax': u'202-225-9308', u'birthdate': u'1952-04-13', u'office': u'CA16', u'cid': u'N00026341', u'twitter_id': u'RepJimCosta', u'lastname': u'COSTA', u'feccandid': u'H4CA20082', u'webform': u'http://www.house.gov/formcosta/issue.htm', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Jim Costa', u'phone': u'202-225-3341', u'facebook_id': u'RepJimCosta', u'first_elected': u'2004', u'congress_office': u'1314 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJimCostaCA20', u'bioguide_id': u'C001059', u'votesmart_id': u'3577'}}, {u'@attributes': {u'website': u'http://honda.house.gov', u'fax': u'202-225-2699', u'birthdate': u'1941-06-27', u'office': u'CA17', u'cid': u'N00012611', u'twitter_id': u'RepMikeHonda', u'lastname': u'HONDA', u'feccandid': u'H0CA15148', u'webform': u'http://honda.house.gov/contact', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Mike Honda', u'phone': u'202-225-2631', u'facebook_id': u'pages/foo/15675385380', u'first_elected': u'2000', u'congress_office': u'1713 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepMikeHonda', u'bioguide_id': u'H001034', u'votesmart_id': u'9674'}}, {u'@attributes': {u'website': u'http://eshoo.house.gov', u'fax': u'202-225-8890', u'birthdate': u'1942-12-13', u'office': u'CA18', u'cid': u'N00007335', u'twitter_id': u'RepAnnaEshoo', u'lastname': u'ESHOO', u'feccandid': u'H8CA12098', u'webform': u'https://eshoo.house.gov/email-me/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Anna Eshoo', u'phone': u'202-225-8104', u'facebook_id': u'pages/foo/174979964227', u'first_elected': u'1992', u'congress_office': u'241 Cannon House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepAnnaEshoo', u'bioguide_id': u'E000215', u'votesmart_id': u'26741'}}, {u'@attributes': {u'website': u'http://lofgren.house.gov', u'fax': u'202-225-3336', u'birthdate': u'1947-12-21', u'office': u'CA19', u'cid': u'N00007479', u'twitter_id': u'RepZoeLofgren', u'lastname': u'LOFGREN', u'feccandid': u'H4CA16049', u'webform': u'http://lofgren.house.gov/contact/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Zoe Lofgren', u'phone': u'202-225-3072', u'facebook_id': u'pages/foo/221191600719', u'first_elected': u'1994', u'congress_office': u'1401 Longworth House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepZoeLofgren', u'bioguide_id': u'L000397', u'votesmart_id': u'21899'}}, {u'@attributes': {u'website': u'http://www.farr.house.gov', u'fax': u'202-225-6791', u'birthdate': u'1941-07-04', u'office': u'CA20', u'cid': u'N00007312', u'twitter_id': u'RepSamFarr', u'lastname': u'FARR', u'feccandid': u'H4CA17021', u'webform': u'https://forms.house.gov/farr/webforms/issue_subscribe.html', u'exit_code': u'4', u'comments': u'Retiring at end of 114th', u'firstlast': u'Sam Farr', u'phone': u'202-225-2861', u'facebook_id': u'pages/foo/7018136294', u'first_elected': u'1993', u'congress_office': u'1126 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/CongressmanSamFarr', u'bioguide_id': u'F000030', u'votesmart_id': u'26745'}}, {u'@attributes': {u'website': u'http://valadao.house.gov', u'fax': u'202-226-3196', u'birthdate': u'1977-04-14', u'office': u'CA21', u'cid': u'N00033367', u'twitter_id': u'RepDavidValadao', u'lastname': u'VALADAO', u'feccandid': u'H2CA20094', u'webform': u'http://valadao.house.gov/contact/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'David Valadao', u'phone': u'202-225-4695', u'facebook_id': u'pages/foo/105596689621089', u'first_elected': u'2012', u'congress_office': u'1004 Longworth House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/congressmanvaladao', u'bioguide_id': u'V000129', u'votesmart_id': u'120200'}}, {u'@attributes': {u'website': u'http://nunes.house.gov', u'fax': u'202-225-3404', u'birthdate': u'1973-10-01', u'office': u'CA22', u'cid': u'N00007248', u'twitter_id': u'Rep_DevinNunes', u'lastname': u'NUNES', u'feccandid': u'H8CA20059', u'webform': u'https://nunes.house.gov/contactform/default.aspx', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Devin Nunes', u'phone': u'202-225-2523', u'facebook_id': u'', u'first_elected': u'2002', u'congress_office': u'1013 Longworth House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/RepDevinNunes', u'bioguide_id': u'N000181', u'votesmart_id': u'16725'}}, {u'@attributes': {u'website': u'http://kevinmccarthy.house.gov', u'fax': u'202-225-2908', u'birthdate': u'1965-01-26', u'office': u'CA23', u'cid': u'N00028152', u'twitter_id': u'GOPLeader', u'lastname': u'MCCARTHY', u'feccandid': u'H6CA22125', u'webform': u'https://kevinmccarthy.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Kevin McCarthy', u'phone': u'202-225-2915', u'facebook_id': u'pages/foo/51052893175', u'first_elected': u'2006', u'congress_office': u'2421 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/repkevinmccarthy', u'bioguide_id': u'M001165', u'votesmart_id': u'28918'}}, {u'@attributes': {u'website': u'http://capps.house.gov', u'fax': u'202-225-5632', u'birthdate': u'1938-01-10', u'office': u'CA24', u'cid': u'N00007232', u'twitter_id': u'RepLoisCapps', u'lastname': u'CAPPS', u'feccandid': u'H8CA22089', u'webform': u'https://capps.house.gov/contact-me/email-me', u'exit_code': u'4', u'comments': u'Retiring at end of 114th', u'firstlast': u'Lois Capps', u'phone': u'202-225-3601', u'facebook_id': u'pages/foo/168989481141', u'first_elected': u'1998', u'congress_office': u'2231 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/reploiscapps', u'bioguide_id': u'C001036', u'votesmart_id': u'16886'}}, {u'@attributes': {u'website': u'https://knight.house.gov', u'fax': u'202-226-0683', u'birthdate': u'1966-12-17', u'office': u'CA25', u'cid': u'N00035820', u'twitter_id': u'SteveKnight25', u'lastname': u'KNIGHT', u'feccandid': u'H4CA25123', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Steve Knight', u'phone': u'202-225-1956', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'1023 Longworth House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'', u'bioguide_id': u'K000387', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://juliabrownley.house.gov', u'fax': u'202-225-1100', u'birthdate': u'1952-08-28', u'office': u'CA26', u'cid': u'N00034254', u'twitter_id': u'JuliaBrownley26', u'lastname': u'BROWNLEY', u'feccandid': u'H2CA00120', u'webform': u'https://juliabrownley.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Julia Brownley', u'phone': u'202-225-5811', u'facebook_id': u'pages/foo/330504617051234', u'first_elected': u'2012', u'congress_office': u'1019 Longworth House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJuliaBrownley', u'bioguide_id': u'B001285', u'votesmart_id': u'59904'}}, {u'@attributes': {u'website': u'http://chu.house.gov', u'fax': u'202-225-5467', u'birthdate': u'1953-07-07', u'office': u'CA27', u'cid': u'N00030600', u'twitter_id': u'RepJudyChu', u'lastname': u'CHU', u'feccandid': u'H0CA32101', u'webform': u'http://chu.house.gov/connect-with-me/email-judy', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Judy Chu', u'phone': u'202-225-5464', u'facebook_id': u'pages/foo/41228315130', u'first_elected': u'2009', u'congress_office': u'2423 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJudyChu', u'bioguide_id': u'C001080', u'votesmart_id': u'16539'}}, {u'@attributes': {u'website': u'http://schiff.house.gov', u'fax': u'202-225-5828', u'birthdate': u'1960-06-22', u'office': u'CA28', u'cid': u'N00009585', u'twitter_id': u'RepAdamSchiff', u'lastname': u'SCHIFF', u'feccandid': u'H0CA27085', u'webform': u'https://schiff.house.gov/email-congressman-schiff1', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Adam Schiff', u'phone': u'202-225-4176', u'facebook_id': u'pages/foo/9086721830', u'first_elected': u'2000', u'congress_office': u'2411 Rayburn House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/adamschiff', u'bioguide_id': u'S001150', u'votesmart_id': u'9489'}}, {u'@attributes': {u'website': u'http://cardenas.house.gov', u'fax': u'202-225-0819', u'birthdate': u'1963-03-31', u'office': u'CA29', u'cid': u'N00033373', u'twitter_id': u'RepCardenas', u'lastname': u'CARDENAS', u'feccandid': u'H2CA28113', u'webform': u'https://cardenas.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Tony Cardenas', u'phone': u'202-225-6131', u'facebook_id': u'pages/foo/485493954794945', u'first_elected': u'2012', u'congress_office': u'1510 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/repcardenas', u'bioguide_id': u'C001097', u'votesmart_id': u'9754'}}, {u'@attributes': {u'website': u'http://sherman.house.gov', u'fax': u'202-225-5879', u'birthdate': u'1954-10-24', u'office': u'CA30', u'cid': u'N00006897', u'twitter_id': u'BradSherman', u'lastname': u'SHERMAN', u'feccandid': u'H6CA24113', u'webform': u'http://sherman.house.gov/contact/contact-congressman-sherman-form', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Brad Sherman', u'phone': u'202-225-5911', u'facebook_id': u'pages/foo/63158229861', u'first_elected': u'1996', u'congress_office': u'2242 Rayburn House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/shermanca27', u'bioguide_id': u'S000344', u'votesmart_id': u'142'}}, {u'@attributes': {u'website': u'https://aguilar.house.gov', u'fax': u'202-226-6962', u'birthdate': u'1979-06-19', u'office': u'CA31', u'cid': u'N00033997', u'twitter_id': u'reppeteaguilar', u'lastname': u'AGUILAR', u'feccandid': u'H2CA31125', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Pete Aguilar', u'phone': u'202-225-3201', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'1223 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'A000371', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://napolitano.house.gov', u'fax': u'202-225-0027', u'birthdate': u'1936-12-04', u'office': u'CA32', u'cid': u'N00006789', u'twitter_id': u'GraceNapolitano', u'lastname': u'NAPOLITANO', u'feccandid': u'H8CA34068', u'webform': u'https://napolitano.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Grace Napolitano', u'phone': u'202-225-5256', u'facebook_id': u'pages/foo/163108420409412', u'first_elected': u'1998', u'congress_office': u'1610 Longworth House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepGraceNapolitano', u'bioguide_id': u'N000179', u'votesmart_id': u'8393'}}, {u'@attributes': {u'website': u'https://lieu.house.gov', u'fax': u'202-225-4099', u'birthdate': u'1969-03-29', u'office': u'CA33', u'cid': u'N00035825', u'twitter_id': u'RepTedLieu', u'lastname': u'LIEU', u'feccandid': u'H4CA33119', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Ted Lieu', u'phone': u'202-225-3976', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'415 Cannon House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'L000582', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://becerra.house.gov', u'fax': u'202-225-2202', u'birthdate': u'1958-01-26', u'office': u'CA34', u'cid': u'N00009774', u'twitter_id': u'RepBecerra', u'lastname': u'BECERRA', u'feccandid': u'H2CA30143', u'webform': u'http://becerraforms.house.gov/forms/writeyourrep/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Xavier Becerra', u'phone': u'202-225-6235', u'facebook_id': u'pages/foo/90311772229', u'first_elected': u'1992', u'congress_office': u'1226 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/XavierBecerra', u'bioguide_id': u'B000287', u'votesmart_id': u'26754'}}, {u'@attributes': {u'website': u'https://torres.house.gov', u'fax': u'202-225-8671', u'birthdate': u'1965-04-04', u'office': u'CA35', u'cid': u'N00036107', u'twitter_id': u'NormaJTorres', u'lastname': u'TORRES', u'feccandid': u'H4CA35031', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Norma Torres', u'phone': u'202-225-6161', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'516 Cannon House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'T000474', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://ruiz.house.gov', u'fax': u'202-225-1238', u'birthdate': u'1972-08-25', u'office': u'CA36', u'cid': u'N00033510', u'twitter_id': u'CongressmanRuiz', u'lastname': u'RUIZ', u'feccandid': u'H2CA36439', u'webform': u'https://ruiz.house.gov/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Raul Ruiz', u'phone': u'202-225-5330', u'facebook_id': u'pages/foo/245244468941114', u'first_elected': u'2012', u'congress_office': u'1319 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/repraulruiz', u'bioguide_id': u'R000599', u'votesmart_id': u'136407'}}, {u'@attributes': {u'website': u'http://bass.house.gov', u'fax': u'202- 225-2422', u'birthdate': u'1953-10-03', u'office': u'CA37', u'cid': u'N00031877', u'twitter_id': u'RepKarenBass', u'lastname': u'BASS', u'feccandid': u'H0CA33117', u'webform': u'https://bass.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Karen Bass', u'phone': u'202-225-7084', u'facebook_id': u'pages/foo/190867440939405', u'first_elected': u'2010', u'congress_office': u'408 Cannon House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepKarenBass', u'bioguide_id': u'B001270', u'votesmart_id': u'28963'}}, {u'@attributes': {u'website': u'http://lindasanchez.house.gov', u'fax': u'202-226-1012', u'birthdate': u'1969-01-28', u'office': u'CA38', u'cid': u'N00024870', u'twitter_id': u'RepLindaSanchez', u'lastname': u'SANCHEZ', u'feccandid': u'H2CA39078', u'webform': u'https://forms.house.gov/lindasanchez/webforms/issue_subscribe.htm', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Linda Sanchez', u'phone': u'202-225-6676', u'facebook_id': u'pages/foo/110685735673141', u'first_elected': u'2002', u'congress_office': u'2329 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/LindaTSanchez', u'bioguide_id': u'S001156', u'votesmart_id': u'29674'}}, {u'@attributes': {u'website': u'http://royce.house.gov', u'fax': u'202-226-0335', u'birthdate': u'1951-10-12', u'office': u'CA39', u'cid': u'N00008264', u'twitter_id': u'RepEdRoyce', u'lastname': u'ROYCE', u'feccandid': u'H6CA39020', u'webform': u'https://royce.house.gov/contact/contactform.htm', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Ed Royce', u'phone': u'202-225-4111', u'facebook_id': u'pages/foo/6460640558', u'first_elected': u'1992', u'congress_office': u'2310 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/RepEdRoyce', u'bioguide_id': u'R000487', u'votesmart_id': u'26772'}}, {u'@attributes': {u'website': u'http://roybal-allard.house.gov', u'fax': u'202-226-0350', u'birthdate': u'1941-06-12', u'office': u'CA40', u'cid': u'N00006671', u'twitter_id': u'RepRoybalAllard', u'lastname': u'ROYBALALLARD', u'feccandid': u'H2CA33048', u'webform': u'http://roybal-allard.house.gov/contact/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Lucille Roybal-Allard', u'phone': u'202-225-1766', u'facebook_id': u'pages/foo/139773069370563', u'first_elected': u'1992', u'congress_office': u'2330 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepRoybalAllard', u'bioguide_id': u'R000486', u'votesmart_id': u'26766'}}, {u'@attributes': {u'website': u'http://takano.house.gov', u'fax': u'202-225-7018', u'birthdate': u'1960-12-10', u'office': u'CA41', u'cid': u'N00006701', u'twitter_id': u'RepMarkTakano', u'lastname': u'TAKANO', u'feccandid': u'H2CA43245', u'webform': u'https://takano.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Mark A Takano', u'phone': u'202-225-2305', u'facebook_id': u'pages/foo/262447300551014', u'first_elected': u'2012', u'congress_office': u'1507 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepMarkTakano', u'bioguide_id': u'T000472', u'votesmart_id': u'22337'}}, {u'@attributes': {u'website': u'http://calvert.house.gov', u'fax': u'202-225-2004', u'birthdate': u'1953-06-08', u'office': u'CA42', u'cid': u'N00007099', u'twitter_id': u'KenCalvert', u'lastname': u'CALVERT', u'feccandid': u'H2CA37023', u'webform': u'https://calvert.house.gov/contactform/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Ken Calvert', u'phone': u'202-225-1986', u'facebook_id': u'pages/foo/70063393423', u'first_elected': u'1992', u'congress_office': u'2205 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/RepKenCalvert', u'bioguide_id': u'C000059', u'votesmart_id': u'26777'}}, {u'@attributes': {u'website': u'http://waters.house.gov', u'fax': u'202-225-7854', u'birthdate': u'1938-08-15', u'office': u'CA43', u'cid': u'N00006690', u'twitter_id': u'MaxineWaters', u'lastname': u'WATERS', u'feccandid': u'H4CA23011', u'webform': u'https://waters.house.gov/contact/contactform.htm', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Maxine Waters', u'phone': u'202-225-2201', u'facebook_id': u'pages/foo/117483585008', u'first_elected': u'1990', u'congress_office': u'2221 Rayburn House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/MaxineWaters', u'bioguide_id': u'W000187', u'votesmart_id': u'26759'}}, {u'@attributes': {u'website': u'http://hahn.house.gov', u'fax': u'202-226-7290', u'birthdate': u'1952-03-30', u'office': u'CA44', u'cid': u'N00006806', u'twitter_id': u'Rep_JaniceHahn', u'lastname': u'HAHN', u'feccandid': u'H8CA36097', u'webform': u'https://hahn.house.gov/contact-me/email-me', u'exit_code': u'3', u'comments': u'Running for LA County Brd of Supervisors', u'firstlast': u'Janice Hahn', u'phone': u'202-225-8220', u'facebook_id': u'pages/foo/256471267712118', u'first_elected': u'2011', u'congress_office': u'404 Cannon House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJaniceHahn', u'bioguide_id': u'H001063', u'votesmart_id': u'70502'}}, {u'@attributes': {u'website': u'https://walters.house.gov', u'fax': u'202-225-9177', u'birthdate': u'1962-05-14', u'office': u'CA45', u'cid': u'N00035391', u'twitter_id': u'RepMimiWalters', u'lastname': u'WALTERS', u'feccandid': u'H4CA45097', u'webform': u'', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Mimi Walters', u'phone': u'202-225-5611', u'facebook_id': u'', u'first_elected': u'2014', u'congress_office': u'236 Cannon House Office Building', u'gender': u'F', u'party': u'R', u'youtube_url': u'', u'bioguide_id': u'W000820', u'votesmart_id': u''}}, {u'@attributes': {u'website': u'http://lorettasanchez.house.gov', u'fax': u'202-225-5859', u'birthdate': u'1960-01-07', u'office': u'CA46', u'cid': u'N00008274', u'twitter_id': u'LorettaSanchez', u'lastname': u'SANCHEZ', u'feccandid': u'H6CA46033', u'webform': u'https://lorettasanchez.house.gov/contact-me/email-me', u'exit_code': u'15', u'comments': u'Running for Senate', u'firstlast': u'Loretta Sanchez', u'phone': u'202-225-2965', u'facebook_id': u'pages/foo/90966961167', u'first_elected': u'1996', u'congress_office': u'1211 Longworth House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/LorettaSanchezLive', u'bioguide_id': u'S000030', u'votesmart_id': u'203'}}, {u'@attributes': {u'website': u'http://lowenthal.house.gov', u'fax': u'202-225-7926', u'birthdate': u'1941-03-08', u'office': u'CA47', u'cid': u'N00033274', u'twitter_id': u'RepLowenthal', u'lastname': u'LOWENTHAL', u'feccandid': u'H2CA00104', u'webform': u'http://lowenthal.house.gov/contact/howtocontactme.htm', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Alan Lowenthal', u'phone': u'202-225-7924', u'facebook_id': u'pages/foo/392631677490897', u'first_elected': u'2012', u'congress_office': u'108 Cannon House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepLowenthal', u'bioguide_id': u'L000579', u'votesmart_id': u'16469'}}, {u'@attributes': {u'website': u'http://rohrabacher.house.gov', u'fax': u'202-225-0145', u'birthdate': u'1947-06-21', u'office': u'CA48', u'cid': u'N00007151', u'twitter_id': u'', u'lastname': u'ROHRABACHER', u'feccandid': u'H8CA42061', u'webform': u'https://rohrabacher.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Dana Rohrabacher', u'phone': u'202-225-2415', u'facebook_id': u'pages/foo/78476240421', u'first_elected': u'1988', u'congress_office': u'2300 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'', u'bioguide_id': u'R000409', u'votesmart_id': u'26763'}}, {u'@attributes': {u'website': u'http://issa.house.gov', u'fax': u'202-225-3303', u'birthdate': u'1953-11-01', u'office': u'CA49', u'cid': u'N00007017', u'twitter_id': u'DarrellIssa', u'lastname': u'ISSA', u'feccandid': u'H0CA48024', u'webform': u'http://issa.house.gov/contact/contact-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Darrell Issa', u'phone': u'202-225-3906', u'facebook_id': u'pages/foo/19463427992', u'first_elected': u'2000', u'congress_office': u'2269 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/repdarrellissa', u'bioguide_id': u'I000056', u'votesmart_id': u'16553'}}, {u'@attributes': {u'website': u'http://hunter.house.gov', u'fax': u'202-225-0235', u'birthdate': u'1976-12-07', u'office': u'CA50', u'cid': u'N00029258', u'twitter_id': u'Rep_Hunter', u'lastname': u'Hunter', u'feccandid': u'H8CA52052', u'webform': u'https://hunter.house.gov/contact-me/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Duncan D Hunter', u'phone': u'202-225-5672', u'facebook_id': u'pages/foo/79072979038', u'first_elected': u'2008', u'congress_office': u'2429 Rayburn House Office Building', u'gender': u'M', u'party': u'R', u'youtube_url': u'http://youtube.com/CongressmanHunter', u'bioguide_id': u'H001048', u'votesmart_id': u'104308'}}, {u'@attributes': {u'website': u'http://vargas.house.gov', u'fax': u'202-225-9073', u'birthdate': u'1961-03-07', u'office': u'CA51', u'cid': u'N00007021', u'twitter_id': u'RepJuanVargas', u'lastname': u'VARGAS', u'feccandid': u'H2CA50026', u'webform': u'https://vargas.house.gov/contact', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Juan Vargas', u'phone': u'202-225-8045', u'facebook_id': u'pages/foo/176942192453747', u'first_elected': u'2012', u'congress_office': u'1605 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'http://youtube.com/RepJuanVargas', u'bioguide_id': u'V000130', u'votesmart_id': u'29100'}}, {u'@attributes': {u'website': u'http://scottpeters.house.gov', u'fax': u'202-225-2558', u'birthdate': u'1958-06-17', u'office': u'CA52', u'cid': u'N00033591', u'twitter_id': u'RepScottPeters', u'lastname': u'PETERS', u'feccandid': u'H2CA52089', u'webform': u'https://scottpeters.house.gov/contact/email-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Scott Peters', u'phone': u'202-225-0508', u'facebook_id': u'pages/foo/449337038470352', u'first_elected': u'2012', u'congress_office': u'1122 Longworth House Office Building', u'gender': u'M', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'P000608', u'votesmart_id': u'70351'}}, {u'@attributes': {u'website': u'http://susandavis.house.gov', u'fax': u'202-225-2948', u'birthdate': u'1944-04-13', u'office': u'CA53', u'cid': u'N00009604', u'twitter_id': u'RepSusanDavis', u'lastname': u'DAVIS', u'feccandid': u'H0CA49055', u'webform': u'https://susandavisforms.house.gov/forms/writeyourrep/', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Susan A Davis', u'phone': u'202-225-2040', u'facebook_id': u'pages/foo/103767526332478', u'first_elected': u'2000', u'congress_office': u'1214 Longworth House Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'', u'bioguide_id': u'D000598', u'votesmart_id': u'8168'}}, {u'@attributes': {u'website': u'http://www.boxer.senate.gov', u'fax': u'202-224-0454', u'birthdate': u'1940-11-11', u'office': u'CAS1', u'cid': u'N00006692', u'twitter_id': u'SenatorBoxer', u'lastname': u'BOXER', u'feccandid': u'S2CA00286', u'webform': u'https://www.boxer.senate.gov/contact/shareyourviews.html', u'exit_code': u'4', u'comments': u'Retiring at end of 114th', u'firstlast': u'Barbara Boxer', u'phone': u'202-224-3553', u'facebook_id': u'pages/foo/116513005087055', u'first_elected': u'1992', u'congress_office': u'112 Hart Senate Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/SenatorBoxer', u'bioguide_id': u'B000711', u'votesmart_id': u'53274'}}, {u'@attributes': {u'website': u'http://www.feinstein.senate.gov', u'fax': u'202-228-3954', u'birthdate': u'1933-06-22', u'office': u'CAS2', u'cid': u'N00007364', u'twitter_id': u'SenFeinstein', u'lastname': u'FEINSTEIN', u'feccandid': u'S0CA00199', u'webform': u'https://www.feinstein.senate.gov/public/index.cfm/e-mail-me', u'exit_code': u'0', u'comments': u'', u'firstlast': u'Dianne Feinstein', u'phone': u'202-224-3841', u'facebook_id': u'pages/foo/334887279867783', u'first_elected': u'1992', u'congress_office': u'331 Hart Senate Office Building', u'gender': u'F', u'party': u'D', u'youtube_url': u'http://youtube.com/SenatorFeinstein', u'bioguide_id': u'F000062', u'votesmart_id': u'53273'}}]}
def candidateRequest(self):
requestParameters = {"apikey":self.apiKey,"output":"json","id":self.stateCode}
requestURL = "http://www.opensecrets.org/api/?method=getLegislators"
a = requests.get(requestURL,params=requestParameters)
#print(a)
#print a.headers
#prettyPrint(a.json())
#print(a.json()["response"]["legislator"])
return a.json()
def getCandidateList(self):
return self.candidateStaticDict
def getCandidateSummary(self,cid):
pass
def getCandidatesAndTweets(self):
return ("space for future metadata here at index 0"),self.andTweetsStaticDict
if __name__ == "__main__":
#Candidacy().getCandidateList()
#Candidacy().getCandidateSummary("N00035825")
#mport TableTest
#exec(TableTest)
print(Candidacy().getCandidateList())
#print(Candidacy().getCandidatesAndTweets())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment