Coder Social home page Coder Social logo

lobbyists's Introduction

SUMMARY
-------

This package provides a reference parser and database importer for the
United States Senate LD-1/LD-2 lobbying disclosure database. The
Senate provides the database as a series of XML documents,
downloadable here:

http://www.senate.gov/legislative/Public_Disclosure/database_download.htm

Note that the 1996-98 files can be purchased directly from the Senate office for 
$315. Not sure why they don't post them on the internet. These were the early 
years of the Lobbying Disclosure Act of 1995. My guess is that compliance 
with the law was not too great then anyhow.

The SQL database schema used by the importer is a direct translation
of the XML schema used in the Senate documents. This is
useful for finding anomalies in the files and for making the data available to other 
software. The XML files are very large and the database is relatively 
easier to access. In any case, it shouldn't be too
difficult to create new tables from the data that can be analyzed. Another use is 
to supplement and check the Center for Responsive Politics (CRP) version of the data which is missing 
many of the variables (e.g. SOPR registrant ID, their physical address, etc.).
The CRP data can be downloaded in bulk here: 
http://www.opensecrets.org/

For information on anomoalies in the LD-1/LD-2 database and some tips on how to interpret them, see here:

http://watchdog.jottit.com/lobbying_database


REQUIREMENTS
------------

This package requires Python 2.5.1 or later.


SCRIPTS
-------

See the Howto.txt for a short script that will take a directory of the Senate's XML files 
and insert them into a database.

The lobbyists-benchmark script loads one XML document into a database,
and reports the amount of time required to a) parse the document and
b) import the parsed records into the database. It's mainly
interesting for developers working on the lobbyists package itself.

lobbyists's People

Contributors

zoomby avatar

Watchers

James Cloos avatar Petru Hincu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.