FTM Wrapper

Follow the Money is a great site to see who is giving cash your various politicians and candidates. The even have an API.

While working on Critter Watch I decided it would be great to combine their information with mine. To make this easier I wrote a simple python wrapper. You can get it here.

I think it’s pretty well documented, but let me know if something’s not clear.

Sample usage:

>>> import followthemoney
>>> c = followthemoney.candidates_list(state='ga', year='2006', candidate_name='Johnson, Eric')
>>> candidate=c.candidate
>>> print candidate.candidate_name, candidate.district, candidate.imsp_candidate_id
JOHNSON, ERIC 001 415990
>>> top = followthemoney.candidates_top_contributors(imsp_candidate_id=candidate.imsp_candidate_id)
>>> for tc in top.top_contributor: print tc.contributor_name
...

Leave a Reply