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.


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

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


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.


MIT © Joakim Carlstein

Node Info

Version: 2.1.0
Updated 2 years, 5 months ago
License: MIT


0 in the last day
4 in the last week
29 in the last month


  • get-hrefs


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


  • joakimbeng