Skip to content

Custom n8n node - Cheerio HTML parser

About

Core HTML parser in n8n is fragile. If html is malformed it gives up parsing it entirely. To overcome this limitation I’ve created custom n8n node.

I’ve had good experience using cheerio for migrating content from old Wordpress sites. That’s why I decided to use it for my custom n8n node.

How to install it?

  1. On your n8n instance go into Settings on the left menu pane. settings
  2. When you are in the settings page, click Community nodes menu entry.
  3. On Community nodes page click Install button. Install community nodes dialog will open.
  4. Enter n8n-nodes-cheerio-parser in npm Package Name input.
  5. Consent with risks by checking checkbox bellow and click Install. install community nodes
  6. If everything went OK you should be able to find it in nodes panel (When building your workflow) by searching for Cheerio node search

How to use it?

I recommend to pair it with the HTTP request: request and cheerio node view

Then then just take {{ $json.data }} from the request and configure your selectors n8n-nodes-cheerio-parser properties

You can find it on npm. Also you can submit an issue on Github