Skip to main content

Search donations from specific PACs to candidates of interest, using OpenFEC and fivethirtyeight data

Project description

pac_hunter :wolf:

A simple project inspired by frustration over employers attempting to raise money from their employees captive audiences for the purpose of fueling their purchase of loyalty from politicians via Political Action Committees (PACs) in the United States.

pac_hunter provides a wrapper around the fantastic API provided by the Federal Elections Committee called OpenFEC. This tool is designed to match a PAC of interest with donations made to specific federal election candidates. The use case that inspired this tool was checking historical donations of a PAC to federal candidates or elected officials that denied the legitimacy of the 2020 election.

Getting started

Check the jupyter notebook provided with this repository demo.ipynb. You will have to either request your own self-service API key from the OpenFEC project, or use their "DEMO_KEY" which has a stricter rate limit.

If you are not familiar with running jupyter notebooks from a local environment, look forward to a google colab notebook once I've published the package. In the meantime, you can run the demo yourself as long as you have python and git installed on your system.

git clone https://github.com/jlwhelan28/pac-hunter.git
cd pac-hunter
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install jupyter
jupyter notebook

Example: Raytheon Technologies' PAC donations to 2020 election deniers

Future release

I'm hopeful to provide a small service that runs a streamlit app providing a simple interface to use this tool for non-developers. Beyond that, future plans will depend on interest.

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

pac_hunter-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

pac_hunter-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pac_hunter-0.1.2.tar.gz.

File metadata

  • Download URL: pac_hunter-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for pac_hunter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 007d001d77df95b7865675a61f309474b5f458ca8bceeb9d33581fb5620773fb
MD5 a42b248efb41c0a30cbb421da21804aa
BLAKE2b-256 dd26e4076e01b529b188903571ef093e073c49f42a5611a80a6e377d512b0d69

See more details on using hashes here.

File details

Details for the file pac_hunter-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pac_hunter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for pac_hunter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 488b63f78db6d43d365279d0370d6b093ff96a841eeafc8f94dd062cfca74d05
MD5 5eececf75a0afe04697b301fa96bb0ff
BLAKE2b-256 82b9b87276dfaba2490dcc2ccf28e7d44e1967defbdaa965f91a434cdd63d9f7

See more details on using hashes here.

Supported by

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