0.0.2 • Published 9 years ago
pagewatcher v0.0.2
PageWatcher
监控一个网页的状态变化
INSTALL
npm install pagewatcher
GET_STARTED
var pw = require("pagewatcher");
var listeners = {
"title": function(old, last){
console.log(old.html(), last.html());
},
".author": function(old, last){
console.log(old.html(), last.html());
}
};
pw.listen("https://github.com/AKIo0O/PageWatcher", 4000, listeners);
// pw.listen(url, interval, listeners);