As stated in the note from the Sunlight Foundation′s Board Chair, as of September 2020 the Sunlight Foundation is no longer active. This site is maintained as a static archive only.

Follow Us

2Day in #OpenGov 2/14/2012

by

Here is Tuesday's take on transparency-related news items, congressional committee hearings, transparency-related bills introduced in Congress, and transparency-related events. News Roundup:

Campaign Finance
  • Most Republican presidential candidates have declined to disclose the identities of their bundlers. (Yahoo/AP)
  • At least four Cabinet secretaries have signaled their willingness to participate in activities aimed at helping Democratic super PACs raise money. (iWatch News)
  • The Obama administration's 2013 budget proposal does not include a previously considered plan to require contractors to disclose political contributions when submitting contract bids. (Federal Computer Week)
Government
International
  • India is the first major democratic country to request that internet companies institute sweeping content filtering policies. Google, Facebook Twitter, and other companies are slated to present plans for filtering "offensive content" by February 21. (Global Voices)
  • Brazil, a co-chair of the OGP, is scheduled to host a meeting of more than 50 participating countries in April. But, they have struggled to secure broad citizen participation in their own OGP plans. (Observing Brazil)

Continue reading

No government money to criticize soda, says freshman lawmaker

by

Outraged that federal stimulus money has been used for local advertisements targeting soda as unhealthy, Rep. Scott DesJarlais, R-Tenn., has introduced the Protecting Foods and Beverages from Government Attack Act, which would make it illegal to use federal funds to criticize a legal food or beverage product.

A member of the House Agriculture Committee, the freshman has collected more than $24,000 from the food and beverage industry, including $4,500 from Steve Ennis, the recently deceased CEO of a local Coca Cola bottling company. Susan Hirschmann, a Coca Cola lobbyist who served as chief of staff to former House ...

Continue reading

2Day in #OpenGov 2/13/2012

by

Here is the week's first look at transparency-related news items, congressional committee hearings, transparency-related bills introduced in Congress, and transparency-related events. News Roundup:

Campaign Finance
  • A major donor to the Rick Santorum supporting Red, White, and Blue Fund, Wyoming Millionaire Foster Friess, was at CPAC last week to introduce the former Senator. (National Journal)
  • Editorial: The DISCLOSE Act is desperately needed. (New York Times)
Government
  • The New Hampshire Legislature passed a law to make open data and open source software included by default in the state's procurement process. (Tech President)
Revolving Door
  • A former legislative adviser at the Department of Health and Human Services is joining Group Health Cooperative as its director of federal government relations. In addition to HHS, Madeline Otto has previously worked as a legislative assistant to Sen. Bill Nelson (D-FL). (National Journal)
  • The Aerospace Industries Association hired their new vice president of acquisition policy from the House Appropriations Committee. William Greenwalt has deep government procurement experience. (Federal Computer Week)
International
  • After a year of high profile anti-corruption protests, a new report shows that state-owned companies have made progress becoming more open. (Transparency International)
  • Iran appears to be instituting an internet blackout in advance of protests planned for Tuesday. (Global Voices)
  • America Speaks and Global Voices are hosting a webinar to explore how Open Government Partnership countries can more effectively engage with their citizens while developing their OGP Action Plans. (Global Integrity)

Continue reading

Introducing python-sunlight

by

Hello, World!

We'd like to welcome python-sunlight into the most excellent family of open-source projects maintained by Labs. This particular project aims to unify and normalize the Sunlight APIs into a single Python library that's easy to understand, use, and fun to play with.

This library currently supports our Congress API, Open States API, and Capitol Words API. As such we're deprecating the old python-sunlightapi and python-openstates libraries. They'll still work but will no longer be receiving updates, so switching is highly recommended.

This library has some neat features that should make migration painless - as well as some new features, such as a standardized location to place your Sunlight API Key, which makes testing (as well as distributing) your app even easier.

We've just released version 1.0.1 over on PyPI, which makes installation a snap on any system with pip. The documentation is fairly complete, but feedback is super welcome -- we're eager to learn where folks get stuck.

Most of the bugs seemed to be worked out after the Boston Python Project Night, where we had a few folks test out the library. A special thanks to all our beta-testers!

Alright, so how do I get started?

Hacking on python-sunlight is super easy. Here's how to get setup.

You'll need an API key. If you've not done so, get an API key (it's alright, we'll wait, go ahead).

Back already? Great.

Now, you'll have gotten the email that has a long-ish string of letters and numbers - let's save this to ~/.sunlight.key (where python-sunlight will look for a key). If you already had a key, it'd be worth it to go and dig it up.

If you're on a UNIX-type (MacOS, GNU/Linux, *BSD, AIX or Solaris (or any of the other POSIX-ey systems)) machine, you should be able to run a command that looks like the following:

echo "your-api-key-here" > ~/.sunlight.key

It's worth mentioning that your-api-key-here should actually be your API key that was emailed to you up above.

Next, you should install python-sunlight via pip. If pip is not installed on your system, please download and install pip.

pip install sunlight

And you're good to go!

Without further ado, an example!

#!/usr/bin/env python
# Copyright (c) 2012, BSD-3 clause, Sunlight Labs

from sunlight import capitolwords
from sunlight import congress

phrase = "death metal"
# Today, we'll be printing out the Twitter IDs of all legislators that use
# this phrase most in the congressional record.

for cw_record in capitolwords.phrases_by_entity(
    "legislator",  # We're getting all legislators
    sort="count",  # sorted by how much they say
    phrase=phrase, # this word
)[:6]: # We'll just try the top 5 legislators
    legislator = congress.legislators(
        bioguide_id=cw_record['legislator'], # Look up this biogude (unique ID)
        #                                      for every fed. legislator 
        all_legislators="true" # search retired legislators 
    )
    if len(legislator) >= 1: # If we were able to find the legislator
        legislator = legislator[0] # (this is a search, so it's a list)
        if legislator['twitter_id'] != "": # and they have a Twitter ID
            print "%s. %s (@%s) said %s %s times" %  (
                legislator['title'],
                legislator['lastname'],
                legislator['twitter_id'],
                phrase,
                int(cw_record['count'])
            ) # Print it to output :)

The output looks like this:

Sen. Feingold (@russfeingold) said death metal 979 times
Rep. Jackson Lee (@JacksonLeeTX18) said death metal 923 times
Sen. Leahy (@SenatorLeahy) said death metal 800 times
Sen. Kyl (@senjonkyl) said death metal 755 times
Sen. Durbin (@SenatorDurbin) said death metal 593 times

And once more (this time, searching for "san francisco"):

Rep. Filner (@CongBobFilner) said san francisco 1346 times
Sen. Feinstein (@senfeinstein) said san francisco 1288 times
Sen. Boxer (@senatorboxer) said san francisco 1181 times
Rep. Pelosi (@NancyPelosi) said san francisco 1135 times
Rep. Eshoo (@RepAnnaEshoo) said san francisco 677 times

Rock on!

Questions, concerns, bugs, patches, examples and virtual hugs are all welcome on our GitHub page, so please do check it out!

Continue reading

Hundreds of DC insiders descend on pricey Romney policy talks, reception

by

For a candidate who says he hasn’t spent a lot of time in Washington, Mitt Romney seems comfortable around D.C. insiders -- at least judging by the droves he drew to fundraisers and exclusive huddles in the nation's capital on Thursday.

Hundreds of deep-pocketed Romney supporters, who paid thousands of dollars apiece, flocked to the J.W. Marriott Hotel, just blocks from the White House the GOP presidential candidate hopes to occupy. At least some may have been hoping that the price of admission would include a ticket to join Romney there.  

The event attracted influential lobbyists, businesspeople ...

Continue reading

CFC (Combined Federal Campaign) Today 59063

Charity Navigator