The Scoop

  • Home
  • Projects
  • About The Scoop
  • Fixing Journalism
  • Medill Links
  • Departments
    • API
    • Apple
    • Asides
    • Broadcast
    • Campaign Finance
    • Car Tools
    • Data
    • DIY
    • django
    • Fed Data
    • FOIA
    • General
    • IRE
    • Journalism
    • Local Data
    • Mapping
    • Miscellany
    • NonGov Data
    • Online
    • Paper Trail
    • Presentations
    • Public Records
    • Python
    • Rails
    • SLA
    • Social Network Analysis
    • Sports
    • State Data
    • Teaching
    • Work
    • XML
  • Subscribe via RSS

Announcing Python-NYTCongressAPI

March 1st, 2009  |  Published in Python  |  3 Comments

So we’ve got this Congress API at The Times, which already has spawned a Ruby shell by Patrick Ewing (a shell being a really neat idea, as well as useful in building apps). I decided to try and get my feet wet with writing a Python library to interact with the API, too, and the initial result is now on Github.

It’s very basic, and owes much to the example put forth by James Turk’s python wrapper for the Sunlight API. At the suggestion of Sean Gillies, I’ve made the calls more in the style of Django’s ORM by using get() and filter() functions. So far, I’ve got functions for members and roll call votes, and I’ll be adding committees soon. Please feel free to fork the code or send suggestions my way.

Responses

Feed Trackback Address
  1. Peter Harkins says:

    March 1st, 2009 at 10:58 pm (#)

    Looking real good, I think it’s great that the NYT is building libraries.

    How’re you liking git? I switched all my personal and Barking Stapler projects over to it a few months ago. I used git-svn at the Post so that I could have feature branches. I’m a big fan. Anyone haze you with a tutorial all about directed acyclic graphs?

  2. Derek says:

    March 2nd, 2009 at 11:04 am (#)

    We use svn at work, but I really like git, particularly the ease of merging forked branches back into the master. No DAG tutorials just yet, either. Congrats on ListLibrary!

  3. raman says:

    March 2nd, 2009 at 12:38 pm (#)

    Thanks for creating this! I had a few minutes last Friday and started writing python scripts for the API–this library is a great help.

Leave a Response

Recent Comments

  • Dave Stanton on A GitHub for Data?
  • Jessica Baumgart on How APIs Help the Newsroom
  • Bookmarks van juli 7th tot juli 14th | .: zerocontent - Blog :. on How APIs Help the Newsroom
  • Reporting with Data: How the New York Times Uses APIs on How APIs Help the Newsroom
  • Brad B on Six Reasons To Look Past Caspio

Recent Posts

  • A GitHub for Data?
  • How APIs Help the Newsroom
  • Big Numbers, Low Impact
  • Using the NYT Congress API with … Excel?
  • An Even Better CAR Conference?

Linking Out

  • Prop 19 Campaign Contributions - Los Angeles Times
  • Introducing the Open State Project API - Sunlight Labs: Blog
  • Teaching Geo-Spatial Thinking in High School Social Studies
  • NYC's Worst Landlords Watchlist | NYC Public Advocate
  • Chicago Tribune 2009 Illinois School Report Cards
  • 5,800 dead in Ohio still on voter rolls | The Columbus Dispatch
  • Nebraska Cornhuskers football rosters database - Omaha.com
  • offensive politics llc - House Data project
  • Cannibalize Business Development by Popularizing your API - Shaival Shah's Blog
  • Using the DocumentCloud API
  • Centralized logging for fun and profit! | Revolution Systems
  • AP IMPACT: Katrina a tale of SBA failure - Yahoo! News
  • RaceTracker is Up-To-Date for Today's Primaries - Blog - OpenCongress
  • Campaign cash: what interest groups are spending on 2010 midterm elections (washingtonpost.com)
  • Using Freebase Gridworks to Create Linked Data | Jeni's Musings


©2010 The Scoop
Powered by WordPress using the Gridline Lite theme by Graph Paper Press.