Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

A Python script to web crawl and notify user of open military veteran software apprenticeships

License

Notifications You must be signed in to change notification settings

alexchong/milvet-apprenticeship-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Military Veteran Software Apprenticeship Bot 🎓

A Python script to web crawl listed static military-veteran apprenticeship pages, for specific keywords that signal open positions, and sends an notification via email if positions are open.

Update 27 May 20: Currently rebuilding script with Selenium to address issues with scraping dynamic page content

Installation

  1. Install dependencies throughp Python binary that will be used for this script
$ pip install -r requirements.txt
  1. Write sender and recever email crendentials to smtp.py
receiver = 'receiver@email.com'
sender = 'sender@gmail.com' # Gmail account must have Less Secured App access enabled
sender_password = 'hunter2'
  1. Open crontab editor
$ crontab -e
  1. Write cron job to automate scheduled task to run script
# m h dom mon dow command
30 8 * * * /absolute/path/to/python absolute/path/to/milvet-apprentice.py
#

Usage

To add an apprenticeship page to pages dictionary

Reference the following template to append an apprenticeship page to pages_dict.py

pages_dict = {
  'Title': {
    'url': '', # URL to specific apprentice page
    'availability': '', # BeautifulSoup.soup.find() command
    'condition': '' # text string used as signal for unavailable apprentice positions e.g. 'no jobs available at this time' 
  }
}

About

A Python script to web crawl and notify user of open military veteran software apprenticeships

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages