code to pull just contact information for all state legislators from Sunlight Foundation's Open States API.
Notes:
- 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
- you will need your own API key
- to run:
- clone repo
- (recommended) create a virtual environment
pip install -r requirements.txt
- create a file called
local_settings.py
and add the lineAPI_KEY=your-openstates-api-key
python get_contacts.py