Integration with readability.js

hey there,

I’m a bit lost but I’m interested in how one would integrate with the readability library on npm?

Overall I’m interested in doing some website monitoring for visible changes by the end user to create a notification. If this is done differently in n8n, I’m open for alternative paths.

br,
benny

Welcome to the community @benny!

That should be no problem. You can create an own node that uses that library. Information about how to create a node in n8n can be found here:


https://docs.n8n.io/#/create-node

If you follow the guide in CONTRIBUTING.md you should be able to easily setup n8n locally. Once that is done you can simply copy an existing node (like NoOp.node.ts) or start from scratch. All that your node would have to do is to use the incoming HTML (which would be supplied by the HTTP Request Node), give that to the readability module and then return the output.

If you do not want to create extra an own node you could also use the HTML-Extract Node. With it, you could extract the information you care about via a CSS-selector and use that one instead.

Btw. an example workflow for HTML-Request with HTML-Extract Node can be found here:
https://n8n.io/workflows/225