{"id":14037045,"url":"https://github.com/newsdev/nyt-fec","last_synced_at":"2025-07-27T04:33:49.522Z","repository":{"id":31626699,"uuid":"121808646","full_name":"newsdev/nyt-fec","owner":"newsdev","description":"a smaller, cleaner, campaign finance app that complements the new FEC site","archived":true,"fork":false,"pushed_at":"2024-01-30T17:32:40.000Z","size":229,"stargazers_count":21,"open_issues_count":0,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-13T03:06:33.676Z","etag":null,"topics":["campaign","fec"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newsdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-16T22:42:39.000Z","updated_at":"2024-01-30T17:38:19.000Z","dependencies_parsed_at":"2022-07-15T19:49:04.472Z","dependency_job_id":null,"html_url":"https://github.com/newsdev/nyt-fec","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsdev%2Fnyt-fec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsdev%2Fnyt-fec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsdev%2Fnyt-fec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsdev%2Fnyt-fec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newsdev","download_url":"https://codeload.github.com/newsdev/nyt-fec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762414,"owners_count":17816024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["campaign","fec"],"created_at":"2024-08-12T03:02:25.964Z","updated_at":"2024-12-02T16:31:40.519Z","avatar_url":"https://github.com/newsdev.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Archived January 2024\n# fec\n\n## Note!\n\n**VERSION 1.1 INCLUDES BREAKING CHANGES THAT COULD LEAD TO DATA LOSS!** The previous working version is tagged `working`\nIf you would like to update to the current version, which supports multiple cycles, and you have data in your donors table, please update to v1.0, run the sql updates described [here](https://github.com/newsdev/nyt-fec/issues/63), and then go up to v1.1. Also strongly recommended to backup your whole database before doing any of this.\n\nApp is still kind of in the scratchpad phase, absolutely no promises that it works or I won't make breaking changes.\n\n## About\nThis app allows for importing and searching expenditures, independent expenditures and contributions from electronic FEC filings. It relies on the NYT's [fec2json](https://github.com/newsdev/fec2json) library.\n\n#### Why not just use the FEC website? \nThe FEC website has been substantially improved recently, but it still lacks several main features we desire.\n1. It takes several days for itemizations to be processed, so it is impossible to search transactions right away\n1. There are some search fields that are important to me that do not exist in the FEC\n1. We want to be able to do more with independent expenditure summing and categorizing\n1. We want to be able to add additional data, such as our own donor ids\n\nIf you don't *really* need to deploy and maintain your own standalone campaign finance infrastructure, however, I recommend using tools developped by the FEC including their [site](https://www.fec.gov/data/?search=), their [api](https://api.open.fec.gov/developers/) or their [bulk data](https://classic.fec.gov/finance/disclosure/ftp_download.shtml). Or use ProPublica's [site](https://projects.propublica.org/itemizer/) or [api](https://www.propublica.org/datastore/api/campaign-finance-api).\n\n### Setup instructions\n1. pull this repo\n1. `mkvirtualenv fec --python $(which python3)`\n1. get a FEC API key [here](https://api.data.gov/signup/)\n1. email APIinfo@fec.gov and ask them to upgrade you to 120 api calls per minute\n1. add the following to your `$VIRTUAL_ENV/bin/postactivate`:\n    ```bash\n    export DJANGO_SETTINGS_MODULE=config.dev.settings\n    export fec_DB_NAME=nyt_dev_fec\n    export fec_DB_USER=nyt_dev_fec\n    export FEC_API_KEY=your-api-key\n    ```\n1. `pip install -r requirements.txt`\n1. `createuser -s nyt_dev_fec `\n1. `createdb -U nyt_dev_fec nyt_dev_fec`\n1. `add2virtualenv . \u0026\u0026 add2virtualenv config \u0026\u0026 add2virtualenv fec`\n1. `django-admin migrate`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewsdev%2Fnyt-fec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewsdev%2Fnyt-fec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewsdev%2Fnyt-fec/lists"}