0.0.2 • Published 9 years ago

pagewatcher v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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);