Skip to main content

A Django app to download IRS 527 filings and load them into a database

Project description

A Django app for downloading and parsing IRS campaign finance data, inspired by the [New York Times Fech library](https://github.com/NYTimes/Fech).

[![Build Status](https://travis-ci.org/sahilchinoy/django-irs-filings.png?branch=master)](https://travis-ci.org/sahilchinoy/django-irs-filings)

Background

Some political committees report their contributions and expenditures to the IRS under § 527 of the U.S. tax code. The IRS publishes these disclosure forms as a bulk download. This app attempts to make sense of that bulk export.

The [archive](http://forms.irs.gov/app/pod/dataDownload/dataDownload) is updated every Sunday at 1:00 AM.

Getting started

Install django-irs-filings as an app in a Django project.

`bash $ pip install django-irs-filings `

Add irs to your list of INSTALLED_APPS in settings.py.

`bash $ vim project/settings.py `

Migrate your database.

`bash $ python manage.py migrate `

Finally, call the load command. This will download the latest zipped archive from the IRS website, unzip and parse it, and insert it into the database.

`bash $ python manage.py load `

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

django-irs-filings-0.1.2.tar.gz (297.1 kB view hashes)

Uploaded Source

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