Skip to content

Instantly share code, notes, and snippets.

@confususs
Created January 17, 2016 21:40
Show Gist options
  • Save confususs/c79a4f0633e5896c0c47 to your computer and use it in GitHub Desktop.
Save confususs/c79a4f0633e5896c0c47 to your computer and use it in GitHub Desktop.
data = {
"bills": [
{
"url": "http:\/\/maplight.org\/us-congress\/bill\/110-hr-195\/233677",
"jurisdiction": "us",
"session": "110",
"prefix": "H",
"number": "195",
"measure": "H.R. 195 (110\u003csup\u003eth\u003c\/sup\u003e)",
"topic": "Seniors' Health Care Freedom Act of 2007",
"last_update": "2011-08-29T20:47:44Z",
"organizations": [
{
"organization_id": "22973",
"name": "National Health Federation",
"disposition": "support",
"citation": "The National Health Federation (n.d.). \u003ca href=\"http:\/\/www.thenhf.com\/government_affairs_federal.html\"\u003e\u003ccite\u003e Federal Legislation on Consumer Health\u003c\/cite\u003e\u003c\/a\u003e. Retrieved August 6, 2008, from The National Health Federation.",
"catcode": "J3000"
},
{
"organization_id": "27059",
"name": "A Christian Perspective on Health Issues",
"disposition": "support",
"citation": "A Christian Perspective on Health Issues (n.d.). \u003ca href=\"http:\/\/www.acpohi.ws\/page1.html\"\u003e\u003ccite\u003ePart E - Conclusion\u003c\/cite\u003e\u003c\/a\u003e. Retrieved August 6, 2008, from .",
"catcode": "X7000"
}]}]}
for bill in data['bills']:
print bill.get('url')
for organization in bill['organizations']:
print organization.get('name')
print organization.get('catcode')
print organization.get('disposition')
print('---')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment