Filtro
Catch web pages data, manipulating HTML in the server.
Install
npm install filtro --save
Make a little test
1 - Install the module filtro-facebook
to returns the facebook tags in the page:
npm install filtro-facebook --save
2 - Write a file containing:
var pageData = filtro; ;
You will see:
API
url
: URL to request.modules
: Array of modules to be used:['facebook', 'title']
, each module will call a Node module, for examplefiltro-facebook
,filtro-title
,filtro-otherFiltroModule
events
onContent
: Trigered when your data is complete.onError
: Tregered when have any error.
Filtro Modules
- Facebook: Returns the Facebook tags data.
- Title: Returns the page title of an URL.
- HTML: Returns the HTML of an URL.
Contributors
Feel free to create a Issue to send suggestions and bugs.