filtro

Catch web pages data, manipulating HTML in the server.

Usage no npm install needed!

<script type="module">
  import filtro from 'https://cdn.skypack.dev/filtro';
</script>

README

filtro

Get summary of a url based in semantic and social tags.

Install

npm install filtro --save

Make a little test

var pageData = require('filtro');

pageData.summarycontent({
    url: 'http://tutsmais.com.br/blog/',
    modules: ['title', 'facebook'],
    onContent: function (e) {
        console.log('Content: ', e);
    }
});

You will see:

summary-content

API

url: URL to request. modules: Array os modules: ['facebook', 'title'];

events onContent: Trigered when your data is complete. onError: Tregered when have any error.

Contributors

Feel free to create a Issue to send suggestions and bugs.