Skip to content

ykt/get-scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-scrapper

Build Status Built with Grunt

About

Light GET (HTTP) scrapper that event based to handle Async behaviour of JS.

Usage


var client = require("cat");

client.on('error', function (error) {
	console.log("Error : " + error);
});
client.on('failure', function (reason) {
	console.log("Failed : " + reason);
});
client.on('success', function (data) {
	console.log("Success >> " + data);
});

client.setUrl("http://www.example.com")
      .hasNext(function(data) {
        if (data.indexOf("still_has_next") < 0) {
          return false;
        }
        return true;
      })
      .perform();

About

Light weight scrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published