5e1349f869444581ed56b542ee25c23f6b2e3019
				
			
			
		
	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
- 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.sqlfile 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)
.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
- DB_PATH- can stay the same
- SCHEMA_PATH- can stay the same
- SEED_PATH- can stay the same
Description
				
					Languages
				
				
								
								
									Python
								
								100%