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

extractcontent

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extractcontent

Utility for extracting title and main contents from an HTML text.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

extractcontent

This module extracts title and main contents from an HTML text.

Algorithm is ported from the original implementation in Ruby

  • http://rubyforge.org/projects/extractcontent/
  • http://labs.cybozu.co.jp/blog/nakatani/2007/09/web_1.html

Usage

var ex = require('extractcontent')
ex.extractFromUrl('http://yssk22.blogspot.com/', function(error, result){ 
   console.log(result.title); 
   // -> Relaxed in Japan.
   console.log(result.content); 
   // -> last week ... 
});

Install

npm install extractcontent

FAQs


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