-
Notifications
You must be signed in to change notification settings - Fork 2
/
fecdetails.py
24 lines (21 loc) · 912 Bytes
/
fecdetails.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
u"""
Simple fetch routine for the 2014, only a subset of the data.
"""
import cache
def get(url, name):
u"""
just call the fetch routine
"""
print "getting name %s with url %s" % (name, url)
return cache.cacheweb(url)
get('ftp://ftp.fec.gov/FEC/2014/cm14.zip','Committee Master File')
get('ftp://ftp.fec.gov/FEC/2014/cn14.zip','Candidate Master File')
get('ftp://ftp.fec.gov/FEC/2014/ccl14.zip','Candidate Committee Linkage File')
get('ftp://ftp.fec.gov/FEC/2014/oth14.zip',
'Any Transaction from One Committee to Another')
get('ftp://ftp.fec.gov/FEC/2014/pas214.zip',
'Contributions to Candidates (and other expenditures) from Committees')
get('ftp://ftp.fec.gov/FEC/2014/indiv14.zip','Contributions by Individuals')
get('ftp://ftp.fec.gov/FEC/2014/add14.zip','Adds')
get('ftp://ftp.fec.gov/FEC/2014/chg14.zip','Changes')
get('ftp://ftp.fec.gov/FEC/2014/delete14.zip', 'Deletes')