Hackin’ on
Government
“How can the web
make government
better?”
…what does “better”
mean?
My definition:
More transparency
Shorter feedback loops
Better identification
of signal
within the noise
What has the political
blogosphere (ugh)
already done
for politics?
What suits
the web
to politics?
It’s great at archiving
It’s easy to reach
It can support
greater depth
Examples:
FactCheck.org
PolitiFact: Truth-O-Meter
PolitiFact: The Obameter
OpenCongress
Full text of bills
(comment on individual paragraphs!)
The world of
government
can accommodate
more developers
Open-source software
advocates
will feel at home with the
ideals
The public sector doesn’t have
the talent or resources
to do it themselves
You don’t need anyone’s
permission
So how do I
build my own?
Getting data
A vast amount
of government data
is available…
…but it’s sloppy
THOMAS
Enter GovTrack
http://govtrack.us
Makes
congressional data
machine-readable
XML data dumps
open-source
and
non-profit
Sunlight Foundation
Sunlight Labs
Case study:
Filibusted
http://filibusted.us
The U.S. Senate allows
for a stall tactic
called the filibuster
To end a filibuster,
you need a successful
cloture vote
The number of cloture votes
is on a major upswing
in recent decades…
…reflecting increasing use
of the filibuster
Methodology:
Keep a list of current senators
(using Sunlight Labs’
Congressional Data API)
Every night, check GovTrack
for new Senate votes
(http://www.govtrack.us/data/us/111/votes.all.index.xml)
Any new cloture votes? If so…
Get information about the bill
and how each senator voted
Put it all on a page
Tweet about it!
Keep stats on senators
Keep stats on the 111th
Congress
Present interesting data views
Ingredients:
Rails, a tiny database,
and a bit of Ruby for parsing
XML.
Read the code:
https://github.com/savetheclocktower/filibusted
Now it’s your turn
Data sources:
GovTrack data dumps:
http://govtrack.us/data/
The Drumbone API:
http://services.sunlightlabs.com/docs/Drumbone_
OpenCongress API:
http://www.opencongress.org/api
Legislator information,
bill trends,
most-blogged-about items
Sunlight Labs APIs:
http://services.sunlightlabs.com/
Legislator information,
campaign contributions,
state-by-state legislative data
New York Times Congress API:
http://developer.nytimes.com/docs/congress_api
Legislator information,
nominees, bills, votes
data.gov
Launched in May 2009
Drinking from the firehose
What about
state government?
The Open State
Project
http://openstates.sunlightlabs.com/
Things to consider:
Is it OK to have
a point of view?
(of course)
Everyone has bias
Data-based methodology
can defend against
accusations of bias
Your conclusions
may be opinionated,
but the underlying data isn’t
Argue in good faith
and play devil’s advocate
User participation?
sure, but be careful of:
1. spam
(you'll get spammed,
even if you rel='nofollow',
and even if you escape HTML)
Use Akismet
or something like it
2. sampling bias
Who visits web sites about
government?
OpenCongress’s page
for the HCR bill:
Don’t use data from your users
to draw conclusions
about the general public
3. vitriol
anonymity + political passion =
angry rhetoric
About the HCR bill:
Be tolerant, but
know what you’re in for
“ Politics is a strong
and slow boring
of hard boards. ”
— Max Weber

Open Government: An Overview