SafeSport is the U.S. Olympic Committee's program to handle reports of possible sexual abuse in Olympic sports. This is some code to track changes to the database.
postgres,psycopg2,csv,requests,json
createdb safesport
-- create psql db.psql safesport < db/db.sql
psql safesport < db/import_common_names.sql
-- import 300 of the most common Male names
python 1_get_autocomplete_from_commonname.py <OPTIONAL NAME>
-- this will get a list of coaches that autocomplete from a single common name on SafeSport's website.python 2_get_coach_details.py <OPTIONAL NAME>
-- This will get the details of a given coach from SafeSport.python 3_check_log.py
-- this will check the log table to identify what logs should be included in the RSS feed.
- The idea here is that each script runs independelty. You can set the frequency through a CRON job. This is just in case SafeSport decides to rate limit. Each script will only do what its supposed to do for a single record. This is why you need the cron job.