requests - pip install requests
pyyaml - pip install pyyaml
gmail - pip install gmail
You can optionally email posts that include an address if you provide a template email
Edit config.yml
to fit your needs
-
use_email_file
: if you want to keep track of who has been emailed so they aren't emailed multiple times -
password
: text file that has your gmail password -
categories
: what keywords you want to search onemail_primary
: what to say for the most-encountered categoryemail_secondary
: smaller blurb if this category has not been mentioned as much as others. Allemail_secondary
fields will be joined and comma separated
-
email
from
: your gmail addresssubject
,body
: template for emails. Intersperse with{ site }
,{ company }
,{ email_primary }
, and{ email_secondary }
as desired and they will be replaced dynamically
Optionally set up a cron job to have it run regularly
crontab -e
30 12 * * * cd /path/to/jobsbox/ && .//path/to/jobsbox/Scraper.py
-> will run everyday at 12:30
Logs will be output to the logs
directory including who was emailed, if new sources were encountered, etc.
If history is enabled history.json
will be in the root directory and include much of the same information, except on a running basis