Skip to content

python script for tracking investment disclosure forms submitted by members of US congress

Notifications You must be signed in to change notification settings

olinpin/us-disclosures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Disclosures

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

How to run

  1. Clone the repo
git clone https://github.com/olinpin/us-disclosures
  1. Change directory into the repo
cd us-disclosures
  1. Copy .env file
cp .env.example .env
  1. Fill .env file with using your favorite editor:
vim .env
  1. Create virtual environment and activate it
python -m venv venv && source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Edit the seed.sql file with names you'd like to track (as seen in the example in the file)
  2. Run the script
python disclosures/financial_disclosure.py
  1. Receive telegram messages with disclosures (for best results I recommend running this every 30 minutes with crontab)

.env variables

  • TELEGRAM_API_KEY - can be obtained through the official telegram docs
  • TELEGRAM_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 same
  • SCHEMA_PATH - can stay the same
  • SEED_PATH - can stay the same

About

python script for tracking investment disclosure forms submitted by members of US congress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages