Skip to content

Python script to check if a school bus is running and notify if it isn't

License

Notifications You must be signed in to change notification settings

wwhorton/busChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bus Checker

Python script to check if a school bus is running and notify if it isn't.

On launch and exit it sends an email to notify that it has started or ended. It uses BeautifulSoup to scrape the URL for our county's public school bus disruption notification page, then searches for the bus number. If found, it emails a notification.

It's set to scrape hourly on weekdays between the hours of 7 and 2. It uses an oAuth2 file and the yagmail library to handle the email.

It runs as a terminal process and exits gracefully on CTRL+C.

To Do (in no particular order)

  • Get variable values from user inputs on launch
  • Optionally take variables from a config file
  • Testing
  • GUI
  • Allow for separate admin and notification email addresses, so that launch and quit is sent to one address but notifications are sent to the other
  • Use Selenium for more reliable page rendering
  • Specify AM, PM, or both

About

Python script to check if a school bus is running and notify if it isn't

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages