detectNewWebsiteContents
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
This val fetches a given publicly-accessible URL and detects whether its contents have changed. If they have, it sends an email to notify about the change.
Changes are detected by computing a quick hash of the website's contents, storing the hash, and comparing against the previously stored hash on each request. Trivial changes to the website's contents will count as a change, which may not be desired for some use cases.
- Fork this val and update the URL to point to your website.
- Optionally, update the storage key or email subject.
- Set a schedule for how often you want to detect changes (default 1h).
- Receive updates when the given website changes.