scraper_template
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.
A basic website scraper template that can be ran on an interval to check for changes. It uses blob storage to save whatever data you'd like to compare the website to.
Uses my sendNotification val to alert yourself of the change.
-
Add the
scrapeURL
you would like to scrape and pick a name for your blob storageblobKey
. -
Change the
"selector"
value to fit your needs. cheerio is used to find the part of the page you'd like to check. -
Adjust the if statement to detect changes and update your blob
-
Craft a message to be sent with
sendNotification()
function