https://github.com/front-seat/fec-data
Scratch code/tools/notebooks for working with historical FEC contribution data. (You probably won't find this very interesting, but hey -- you never know!)
https://github.com/front-seat/fec-data
election election-data fec
Last synced: 4 months ago
JSON representation
Scratch code/tools/notebooks for working with historical FEC contribution data. (You probably won't find this very interesting, but hey -- you never know!)
- Host: GitHub
- URL: https://github.com/front-seat/fec-data
- Owner: front-seat
- License: mit
- Created: 2023-11-15T16:59:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T18:53:40.000Z (over 1 year ago)
- Last Synced: 2025-01-23T09:35:44.432Z (6 months ago)
- Topics: election, election-data, fec
- Language: Jupyter Notebook
- Homepage:
- Size: 655 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fec-data
Working with FEC individual contribution data
You'll want to download FEC's 2019-2020 dataset from here: https://www.fec.gov/data/browse-data/?tab=bulk-data
And you'll want to symlink `./data/indiv20.txt` to the `itcont.txt` file you download from FEC.Details on the FEC data schema: https://www.fec.gov/campaign-finance-data/contributions-individuals-file-description/
### Notes on installing dependencies locally on a Apple Silicon mac
We're using `python 3.12`. Modern Macs have `clang >= 15.x` (mine has `17.0.4`).
Alas, a transitive dependency (`multidict`) is currently broken in this environment and, also, does not ship binary wheels. Here's my solution: https://github.com/aio-libs/multidict/pull/877#issuecomment-1812948387
### Running locally
You'll need the sqlite databases, of course (ask Dave).
Then, you'll need to install the dependencies:
```
npm install
CFLAGS="-Wno-error=int-conversion" pip install -r requirements.txt
pip install -r requirements-dev.txt
```Then, you'll need to run both the Vite front-end server AND the python+litestar backend server:
```
./scripts/run.sh
```Pop open http://localhost:2222/ and you should see the app.