Skip to content

A little NodeJS Puppeteer action to see if a page or part of a page changed.

Notifications You must be signed in to change notification settings

tobinbradley/sitechangecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple thing I made to check if a site has changed or not. It uses libnotify to send notifications, which is a Linux thing. If you're on something else, you'll want to switch to something like node-notifier.

The .env file contains the following arguments:

  • SITEURL: The URL to check
  • TYPE: PNG diff or TXT diff
  • SELECTOR: optional selector for text, otherwise it grabs the whole HTML file

The first time it runs, it'll get a file called baseline in either the img or txt folder. Subsequent runs it'll make a new file called compare in the respective folder, then compare the two files. For an image check, it creates a diff.png file to illustrate the difference.

About

A little NodeJS Puppeteer action to see if a page or part of a page changed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published