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.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pac_hunter-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ad8b84ba8b67f8eb6b0c90a1a9b488f7fd5b5f7d94949b7a0e034211ad6a9f68
MD5 79532b5ec1260e5eebfaf31e637aa289
BLAKE2b-256 146209b30c82d687a245307a9a08f107b53501ff977153642b526f1ac121afc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pac_hunter-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6dc4dbc720fffc3adb0b1eb23f908694a2fa4658d994b90456ac9e5e20869daf
MD5 67246402dc78d3c30aa6c73599fadce7
BLAKE2b-256 cf3bd3bc324c573943d59511b04637f0fecfeb027b76336a9a6a6473eda7584a

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