node-red-contrib-readability 5.0.2

A Node-RED readability node

npm install node-red-contrib-readability

Build status NPM version XO code style

A Node-RED readability node

A node that runs readability-js on the input payload.

Installation

Install node-red-contrib-readability using npm:

npm install --save node-red-contrib-readability

Usage

To use the node, launch Node-RED (see running Node-RED for help getting started).

The input payload should be the HTML to run readability on.

The output payload will have the following properties (if an article was found in the HTML):

  • title - the article title
  • content - the article content HTML
  • text - the article content text
  • excerpt - the article description from any description, og:description or twitter:description <meta>
  • length - length of article, in characters
  • icons - array of any icons specified as <link rel=...> icon tags
  • meta - a nested object of meta data, e.g. <meta property="og:type" content="article"> gives meta = {og: {type: 'article'}}

All other properties on the msg object will be preserved.

Icon credit

The node icon is the readability icon from Material Design Icons by Austin Andrews @Templarian.

License

MIT © Joakim Carlstein

Node Info

Version: 5.0.2
Updated 9 years, 1 month ago
License: MIT
Rating: not yet rated

Actions

Rate:

Downloads

0 in the last week

Nodes

  • readability

Keywords

  • node-red
  • readability

Maintainers