1.0.0 • Published 8 years ago

web-scraping v1.0.0

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
8 years ago

web-scraping

Node Module for extracting information from websites.

build status

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
}