Skip to main content

retrieves data from FEC.gov website

Project description

FEC Data Reader

A quick way to retrieve FEC bulk data from https://www.fec.gov:

>>> import fec_reader as fec
>>> reader = fec.DataReader(data_dir='/raw') # pick a target directory
>>> reader.get_pac_summary(2010, 2018)

Each reader function allows you to specify year ranges for the data downloads. For example, the code below retrieves 3 data files:

reader.get_pac_summary(2014, 2018)

This is because the data in each file spans two calendar years.

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.

There is a 5 second delay between files to respect FEC.gov's bandwith.

Features

FEC Reader currently retrieves these data files:

Installation

To install FEC Reader, simply use pip:

$ pip install fec-reader

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fec-reader-2.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fec_reader-2.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file fec-reader-2.0.1.tar.gz.

File metadata

  • Download URL: fec-reader-2.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for fec-reader-2.0.1.tar.gz
Algorithm Hash digest
SHA256 555aba98143eaf8c2c434550240129de6ffa61b31725162c4e5acd063df9b78b
MD5 437b4e4337793339e074d499b9dc9efc
BLAKE2b-256 ae45b2a64ae398fdc30d75c539538b84c72af8f43da86313963e545512e23219

See more details on using hashes here.

File details

Details for the file fec_reader-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: fec_reader-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for fec_reader-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ae6e35390d0b5f3a03b8479638779e566738e7369a3ffa6ae9c76ab749455c
MD5 bf1c8264d7a6e5fffc5b3a8ac676a5f8
BLAKE2b-256 b0e02b48f8f9079b86483011ab96a1f78cf3f59d718c3177038879f10d7d03d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page