1.0.6 • Published 8 years ago
html-selector-checker v1.0.6
About
Simple http-request based selector checker. Returns a promise. Verifies given's url + given selector result for a given text entry.
Usage
const check = require('html-selector-checker');
async function main() {
let res = await check(
'https://www.apple.com/shop/buy-mac/macbook-pro',
'.as-macbundle-modelspecs li',
'8th-generation'
);
if (res) {
console.log('NEW MAC AVAILABLE!')
} else {
console.log('...')
}
}