web-scraping
v1.0.0
Published
Node Module for extracting information from websites.
Downloads
1
Readme
web-scraping
Node Module for extracting information from websites.
Installation
This module is installed via npm:
$ npm install web-scraping
Example Usage
var Scraping = require('web-scraping');
var scraping = new Scraping({
debug : true||false, // Turn on all console messages debug messages
url : ... , // The URL to Parse
parser: function(){ ... } // Function to parse the HTML of the page loaded in URL
});
....
function foo(){
//The Callback function, the parameter is the returned element from parser function
var callback = function(content){
console.log(content);
}
scraping.exec(callback) //Execute the parsing function over the URL provided
}