node-red-contrib-get-hrefs 2.1.0

A Node-RED node to get all href urls from an HTML string

npm install node-red-contrib-get-hrefs

Build status NPM version XO code style

A Node-RED node to get all href urls from an HTML string

A node that extracts all <a href=""> targets from payload in the input message and attaches them as an array hrefs on the output message.

Installation

Install node-red-contrib-get-hrefs using npm:

npm install --save node-red-contrib-get-hrefs

Usage

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

The input payload should be the HTML to get hrefs from.

If the input message contains a url property it will be used as the baseUrl option for get-hrefs under the hood.

The output message will be the same as the input but with an hrefs array containing all found href urls in the HTML body.

Icon credit

The node icon is the link-variant icon from Material Design Icons by Austin Andrews @Templarian.

License

MIT © Joakim Carlstein

Node Info

Version: 2.1.0
Updated 1 year, 1 month ago
License: MIT

Downloads

3 in the last day
8 in the last week
43 in the last month

Nodes

  • get-hrefs

Keywords

  • node-red
  • hrefs
  • href
  • urls
  • links

Maintainers

  • joakimbeng