Skip to content

Instantly share code, notes, and snippets.

@edsu edsu/get.py
Created Apr 10, 2019

Embed
What would you like to do?
import requests
key = "my_key"
headers = {"X-API-KEY": key}
url = 'https://api.propublica.org/congress/v1/116/house/members.json'
resp = requests.get(url, headers=headers)
print(resp.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.