Skip to content

Instantly share code, notes, and snippets.

@paultag
Created December 17, 2012 16:55
Show Gist options
  • Select an option

  • Save paultag/4319783 to your computer and use it in GitHub Desktop.

Select an option

Save paultag/4319783 to your computer and use it in GitHub Desktop.
from sunlight import openstates
bills = filter(
lambda x: x != [],
[
[
y['url'] for y in x['documents']
] for x in openstates.bills(q="rifle", fields='documents', state='ct')
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment