unitedstates / wish-list

A wish list for this organization, open an Issue to discuss what we can add. Derived from a News Foo session.
https://github.com/unitedstates/wish-list/issues
16 stars 3 forks source link

Guest chaplain prayers? #9

Closed wilson428 closed 11 years ago

wilson428 commented 11 years ago

Any interest in the text of the 633 guest chaplain prayers on the House Chaplain website? Noticed them from a @dwillis tweet on Monday.

I have an interactive coming out on these on Monday, and can link directly here to the source if desired. Otherwise will just stick on my account, no worries. Code is already done and conforms to this org's general format -- utils.py etc etc

dwillis commented 11 years ago

I was going to integrate just the chaplain appearances at some point, so this would be great. Do you also have their congressional sponsors? Can we hook those up with bioguide IDs?

wilson428 commented 11 years ago

Just added a Chaplains repo -- it does pull down the sponsoring member when there is one. (About 175 of them list no sponsor.) It parses the party and state of the sponsor, but doesn't link to Bioguide. Would be extremely easy to connect the two, however. Recommendations for how to connect the repos?

dwillis commented 11 years ago

Couple of different ways you could approach it - you could use the current & former legislators file, or the NYT API's list of members for a specific congress and then match on last name, state and party.

wilson428 commented 11 years ago

I took a pass at a member lookup function using the Times API, in member_lookup.py in the chaplains repo. Might be useful for other projects. Right now it can handle modestly ambivalent names (Sheila Jackson Lee or Jackson-Lee?) and misspelled names that are one edit distance away from being correct. (The House Chaplain site is rather sloppy).