- Congress API
- Google Civic Information API
- Streamlit Extras
- https://api.congress.gov/
- https://github.com/unitedstates/congress
- clone this repo
- cd in dir
conda create -n [envname] python=3.10
conda activate [envname]
pip install -r requirements.txt
- Add your API keys to
.streamlit/secrets.toml
. Create the file if needed.
streamlit run streamlit_app.py
- User inputs address
- App gets applicable members
- App gets all bills during member tenor
- GPT summarizes all bills to 1 liners
- User swipes on one-liners (support, oppose, or skip)
- App shows the alignment of the voter with members up for re-election
Call it elective review
Future ideas:
Some members might come back to challenge the current person. Take their past voting records and rank it against the user.
Allow new candidates running for election to display how they would've voted for past bills.