Want to get an email when a certain bit of text on a page has changed?
Use Github Actions!
- Fork this repo
- Edit the top bit of
.github/workflows/pagediff.yaml
:env: # Define diff target here # The page to visit URL: 'https://sebbacon.github.io/' # The XPath for the content you're interested in # (try right-clicking the element in the inspector in Chromium) XPATH: '/html/body/header/div/a' # A filename where we will save the contents of that XPath FILE_PATH: 'sebbacon.html'
- Set up Email Notifications (in the Settings of your repo) to get an alert when the action fails (i.e. when there's a new diff to report)
Thanks to Dave for pointing out this one wierd trick some years ago.