Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filtro

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filtro

Catch web pages data, manipulating HTML in the server.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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 = require('filtro').filtro;

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

You will see:

summary-content

API

  • url: URL to request.
  • modules: Array of modules to be used: ['facebook', 'title'], each module will call a Node module, for example filtro-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.

Keywords

FAQs

Package last updated on 11 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc