Simple python app to track US Disclosurs forms, where members of congress post their investments. Script checks if there are any new disclosures for specified members and if there are, those disclosures will be sent as a telegram message. Data is from https://disclosures-clerk.house.gov/FinancialDisclosure
- Clone the repo
git clone https://github.com/olinpin/us-disclosures
- Change directory into the repo
cd us-disclosures
- Copy .env file
cp .env.example .env
- Fill .env file with using your favorite editor:
vim .env
- Create virtual environment and activate it
python -m venv venv && source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Edit the
seed.sql
file with names you'd like to track (as seen in the example in the file) - Run the script
python disclosures/financial_disclosure.py
- Receive telegram messages with disclosures (for best results I recommend running this every 30 minutes with crontab)
TELEGRAM_API_KEY
- can be obtained through the official telegram docsTELEGRAM_CHANNEL_ID
- that's the channel ID of your telegram bot that you created according to docs above (can be a CSV)DB_PATH
- can stay the sameSCHEMA_PATH
- can stay the sameSEED_PATH
- can stay the same