# Custom node: Webpage content extractor

**URL:** <https://community.n8n.io/t/custom-node-webpage-content-extractor/34942>\
**Category:** Built with n8n\
**Created:** [January 7, 2024, 1:05pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942 "2024-01-07T13:05:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavierd](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/xavierd/32/33839_2.png) [@xavierd](https://community.n8n.io/u/xavierd)\
**Post date:** [January 7, 2024, 1:05pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/1 "2024-01-07T13:05:27Z")

</div>

Hi everyone!

I want to share a custom node I just built: Webpage Content Extractor.

> **[GitHub - Savjee/n8n-nodes-webpage-content-extractor](https://github.com/Savjee/n8n-nodes-webpage-content-extractor)**
>
> Contribute to Savjee/n8n-nodes-webpage-content-extractor development by creating an account on GitHub.

It takes a HTML document as input and extracts the main contents from it. Sidebars, headers, and footers are all stripped.

It’s based on the [readability library](https://github.com/mozilla/readability) that is used by Firefox’s Reader View.

## How to install

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation, and add the `n8n-nodes-webpage-content-extractor` community node.

## How to use it

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/0/20a30ce97ee6f8aecc2c37215747c95785e50261.png)

1. Use the “HTTP Request” node to fetch the HTML document of a given URL (or get it from other sources)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/9/c9ed8978e0c3edc41b3915b08d94c12a1aab7881.png)

1. Connect the “HTTP Request” node to the Webpage Content Extractor node

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/e/cea54c514c97217383225a2a5aa3aa128f6339c5.png)

1. The Webpage Content Extractor will parse the HTML document and return a JSON document with useful attributes:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/6/b64557bd9c9d59890070efab8b3fc3c2a3acb251.png)

---

<div class="post-metadata">

**Author:** ![Kool\_Baudrillard](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kool_baudrillard/32/14282_2.png) [@Kool\_Baudrillard](https://community.n8n.io/u/Kool_Baudrillard)\
**Post date:** [January 7, 2024, 2:48pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/2 "2024-01-07T14:48:22Z")

</div>

Wow, that´s really cool, would be nice to have basic html tags available.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 7, 2024, 4:08pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/3 "2024-01-07T16:08:03Z")

</div>

Welcome to the community @xavierd !

Really cool! Thanks a lot for sharing that with the community.

---

<div class="post-metadata">

**Author:** ![Ruslan\_Yanyshyn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan_yanyshyn/32/15080_2.png) [@Ruslan\_Yanyshyn](https://community.n8n.io/u/Ruslan_Yanyshyn)\
**Post date:** [January 9, 2024, 6:41pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/4 "2024-01-09T18:41:05Z")

</div>

Nice work!! It would be nice as well that this node could extract tables if they present on the page or as an option.

---

<div class="post-metadata">

**Author:** ![Vincent\_Haywood](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/vincent_haywood/32/49005_2.png) [@Vincent\_Haywood](https://community.n8n.io/u/Vincent_Haywood)\
**Post date:** [December 8, 2024, 10:59pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/5 "2024-12-08T22:59:38Z")

</div>

Thanks for this, just sorted an issue I was having! Love it

---

<div class="post-metadata">

**Author:** ![Simon\_Formanowski](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/simon_formanowski/32/74205_2.png) [@Simon\_Formanowski](https://community.n8n.io/u/Simon_Formanowski)\
**Post date:** [April 18, 2025, 4:14pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/7 "2025-04-18T16:14:23Z")

</div>

dude this is golden - thank you so much! ❤👍

---

<div class="post-metadata">

**Author:** ![Gesture2867](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@Gesture2867](https://community.n8n.io/u/Gesture2867)\
**Post date:** [June 16, 2025, 1:35pm UTC](https://community.n8n.io/t/custom-node-webpage-content-extractor/34942/8 "2025-06-16T13:35:58Z")

</div>

This is amazing! This helps save so many tokens and API costs when cleaning website contents.

One request I would have to improve this is to preserve formatting, for example: titles and inline links.

When using the readability feature in the Firefox browser it does do this, so I am not sure if it a limitation with the library they provide or it is not implemented.

If possible would be nice to have this, still very useful otherwise!
