Skip to content

trgilmore/health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CLU Health Check Automation

Disclaimer: This was created as an educational exercise to learn how to automate a process via a headless browser. It is not intended to be used. Also, if you do use this, please be sure to do so responsibly and cancel the cronjob if this script would submit false data.

This project was inspired by @ScarletKnight310's CLU Health Check Automation project. Made with help from a tutorial at https://www.scrapingbee.com/blog/submit-form-puppeteer/

Get Started

git clone https://github.com/trgilmore/health.git
cd health
  • Be sure to change the relative personal info in index.js to your own. NOTED in ALL CAPS.

Requirements:

Puppeteer is a node module that allows you to automate a browser. It can be installed via npm while in the /health directory.

npm install puppeteer

Automation

Option 1

ScarletKnight310 used a Windows automation tool to automate the process, but if you have a Mac or Linux, you can use cronjobs to accomplish the same thing. Use the script below, just determine the full PATH for node. (This is set for every Monday at 10am through May, I recommend using https://crontab.guru/ to determine the correct cron syntax)

crontab -e
0 10 * 4,5 1 cd /health && {PATH}/node index.js

Option 2?

Also, I haven't tested it yet but this could potentially be set up to run with github actions so you would not be not relient on your own machine to be powered on. The only problem is that Github suspends Actions on repos that are not active for 60 days. Example of the action yml file here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published