# Filtering HTML extract for specific external links

**URL:** <https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014>\
**Category:** Questions\
**Created:** [July 31, 2025, 11:37pm UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014 "2025-07-31T23:37:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://community.n8n.io/u/tmo)\
**Post date:** [July 31, 2025, 11:37pm UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014/1 "2025-07-31T23:37:51Z")

</div>

Hi all- new to n8n and this community so please go easy!

I am trying to set up a simple workflow to understand if the external links on a particular site work and if they return the correct information.

I have done a HTML extract which returns around 250 links (mixture of internal and external)

But then I have tried various methods but cannot get it to filter only on the specific external links that start with [https://links](https://links). …

1. tried function node but it wouldn’t return anything once executed

2. tried the filter note - at first an error message as couldn’t handle 200+ links at once

So I included split in batches of 1 node before filter but then it would return nothing.

Any ideas?

Thank you all

---

<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:** [August 1, 2025, 12:05am UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014/2 "2025-08-01T00:05:40Z")

</div>

This is how I would do it:

Alternatively, this selector would do the same here:

```auto
a[href^="https://links"]

```

---

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://community.n8n.io/u/tmo)\
**Post date:** [August 1, 2025, 7:08am UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014/3 "2025-08-01T07:08:32Z")

</div>

amazing the a[href^=“[https://links](https://links)”] solution so simple and worked. Thank you

---

<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:** [August 1, 2025, 12:59pm UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014/4 "2025-08-01T12:59:09Z")

</div>

Great!! Kindly mark the answer as solution then. Thank you.

Cheers!

---

<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:** [August 8, 2025, 12:59pm UTC](https://community.n8n.io/t/filtering-html-extract-for-specific-external-links/160014/5 "2025-08-08T12:59:20Z")

</div>

Closed on August 8, 2025, 12:59pm UTC

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