pagewatcher

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pagewatcher

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • imappbox