Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 572 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 572 Bytes

legislative-contact

code to pull just contact information for all state legislators from Sunlight Foundation's Open States API.

Notes:

  1. the csv here is not up to date, so you should re-run this code locally if you want the current status of the API
  2. you will need your own API key
  3. to run:
  4. clone repo
  5. (recommended) create a virtual environment
  6. pip install -r requirements.txt
  7. create a file called local_settings.py and add the line API_KEY=your-openstates-api-key
  8. python get_contacts.py