public
Description: Parsers and utilities for the Senate LD-1/LD-2 database.
Homepage:
Clone URL: git://github.com/dhess/lobbyists.git
dhess (author)
Tue Oct 21 02:20:09 -0700 2008
commit  bdc581bdd5ca3f0bfaf1b5c8a843dfed26c40310
tree    4dd64e454b481f62c9dda344e2e3e43ff3db2e25
parent  eea5e2becd146abe1994d84c7e8ed8dd9c46fed6
name age message
file .gitignore Tue Oct 07 00:49:40 -0700 2008 .gitignore: ignore .egg files. [dhess]
file AUTHORS Sun Oct 12 18:02:40 -0700 2008 Added AUTHORS, ChangeLog and INSTALL files. Ad... [dhess]
file COPYING Sat Oct 18 23:28:11 -0700 2008 Changed license to GPLv3. [dhess]
file INSTALL Sun Oct 12 18:02:40 -0700 2008 Added AUTHORS, ChangeLog and INSTALL files. Ad... [dhess]
file Makefile Loading commit data...
file README Sat Oct 18 17:05:02 -0700 2008 README: Added requirements section. [dhess]
file TODO
directory debian/
directory doc/
file ez_setup.py Tue Oct 07 00:44:38 -0700 2008 setuptools packaging. Lots of changes in this ... [dhess]
directory lobbyists/ Tue Oct 21 02:08:12 -0700 2008 Added a HOWTO.txt complete with some functional... [dhess]
file setup.py Sat Oct 18 23:28:11 -0700 2008 Changed license to GPLv3. [dhess]
README
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

The SQL database schema used by the importer is a direct translation
of the XML schema used in the Senate documents. This isn't a
particularly useful format for analyzing lobbying data, but it is
useful for analyzing the lobbying records themselves, which often
contain errors or anomalies. In any case, it shouldn't be too
difficult to adapt the importing code in this package to a more useful
schema.

For information on how to interpret the LD-1/LD-2 database, see here:

http://watchdog.jottit.com/lobbying_database


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

This package requires Python 2.5.1 or later.


SCRIPTS
-------

The lobbyists-load script loads one or more XML documents 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.