Skip to content

Send an email summary whenever the department of ed opens a new investigation into a U.S. college

Notifications You must be signed in to change notification settings

declanrjb/higher-ed-investigations-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Python-based scraper to send an email alert to the specified recipients whenever the U.S. Department of Ed opens a new investigation into one or more colleges. Email alerts include a one line summary and an in-message table of the new investigations - including their subjects, targets, and initiation dates.

Installation

Choose a directory to host the crawler, and run the following commands:

git clone https://github.com/declanrjb/higher-ed-investigations-crawler.git

Open update-and-send.ipynb and update the recipients list with your own email address and/or the addresses of any other recipients.

Obtain a SendGrid API key and store it in sendgrid.env in the notebooks directory with the specification SENDGRID_API_KEY=<your-key>

Then, run:

crontab -e

Update your cron to include the following job:

0 10 * * 2 <your-directory>/higher-ed-investigations-crawler/shell-scripts/send-weekly-update.sh

Make sure that the header of your crontab includes your current path as output by echo $PATH.

Run :x to save and exit cron. Cron will run the update-and-send Python notebook every Tuesday morning at 10am, the day the DoE updates their site. If new investigations are found, they will be added to the data/weekly-logs directory as a CSV file, and you will receive an email alert.

About

Send an email summary whenever the department of ed opens a new investigation into a U.S. college

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published