retrieves flat-file data from FEC.gov website
Project description
FEC Data Reader
A quick way to retrieve FEC bulk flat-file data from https://www.fec.gov:
This package is a demonstration of ETL skills for Alexus Wong. However, it is also important that we as a society can efficiently consume the inordinate amount of information available today. If we can process it, we can take steps in the right direction.
To use this package, instantiate a DataReader
object with a target directory. As you call relevant methods,
the DataReader
object will save flat-files to your chosen directory.
>>> import fec_reader as fec
>>> reader = fec.DataReader(DATA_DIR='/raw') # pick a target directory
>>> reader.get_pac_summary()
Features
FEC Reader currently retrieves these data files:
- PAC Summary - https://www.fec.gov/campaign-finance-data/pac-and-party-summary-file-description/ - 'get_pac_summary'
- Candidate Master - https://www.fec.gov/campaign-finance-data/candidate-master-file-description/ - 'get_candidate_master'
Installation
To install FEC Reader, simply use pip:
$ pip install fec-reader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fec_reader-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf8213b1e53baf16c573eed6db217e1128f619295b97fe8f336b02df7433d4d |
|
MD5 | 59e34ddd102ee9610cf0ea3ba03306d7 |
|
BLAKE2b-256 | e3678aed10940f7cb871ce72259a6dc61debd9d3b81b9ea2b50dce8bb16c750c |