# Does the 'Extract HTML content'-node support advanced CSS selectors?

**URL:** <https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464>\
**Category:** Questions\
**Created:** [July 17, 2025, 3:25pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464 "2025-07-17T15:25:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LanderC](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LanderC](https://community.n8n.io/u/LanderC)\
**Post date:** [July 17, 2025, 3:25pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464/1 "2025-07-17T15:25:58Z")

</div>

Hello,

I’m trying to bring in data from a website using the ‘Extract HTML Content’-node.

I’m using a CSS selector that selects a data-attribute using:  
.class[data-list=‘XXXX’]

This doesn’t seem to result in any data.

I’m forced to work like this as the website uses generic classes that repeat themselves multiple times.

Anyone have experience with this? Any workarounds?

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [July 17, 2025, 3:30pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464/2 "2025-07-17T15:30:19Z")

</div>

Hey @LanderC hope all is good!

Would you like to share the website and what you are trying to scrape?

---

<div class="post-metadata">

**Author:** ![LanderC](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LanderC](https://community.n8n.io/u/LanderC)\
**Post date:** [July 18, 2025, 1:45pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464/3 "2025-07-18T13:45:17Z")

</div>

Sure Jabbson!

It’s a Dutch news website. They have a dedicated section for ‘most read’ news articles:  
 → hln.be

The section with title ‘Meest gelezen’ uses generic classes found on different parts of the homepage.

This CSS selector should work:  
.col–secondary .fjs-sticky-container .widget\_\_content .ankeiler\_\_link[data-list=‘meest gelezen’]

But it doesn’t in n8n somehow.

Thx for the response!

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [July 18, 2025, 2:11pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464/4 "2025-07-18T14:11:02Z")

</div>

It appears the website have a firewall which kicks in after several attempts of getting the page. Is this something you came across already?

```auto
Forbidden - perhaps check your credentials?
Access Denied Access Denied
Your request was blocked by DPG Media's Web Application Firewall.

```

Nonetheless, if you are after the articles in the Meest gelezen, the selector you are looking for is simply

`a[data-list='meest gelezen']`

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 25, 2025, 2:11pm UTC](https://community.n8n.io/t/does-the-extract-html-content-node-support-advanced-css-selectors/151464/5 "2025-07-25T14:11:41Z")

</div>

Closed on July 25, 2025, 2:11pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
