# URL Domain Extractor Doesn't Work With New TLDs

**URL:** <https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828>\
**Category:** Community Extensions\
**Tags:** palladian-selenium\
**Created:** [May 11, 2022, 7:12am UTC](https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828 "2022-05-11T07:12:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![badger101](https://forum-cdn.knime.com/user_avatar/forum.knime.com/badger101/32/45755_2.png) [@badger101](https://forum.knime.com/u/badger101)\
**Post date:** [May 11, 2022, 7:12am UTC](https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828/1 "2022-05-11T07:12:26Z")

</div>

![first8rows](https://forum-cdn.knime.com/uploads/default/original/3X/e/7/e761a5671f4084f7b78c806f2ae73230ad889d01.png)

Greetings!

I was using the URL Domain Extractor Node, and I found that the first 8 rows did not give the correct results. Might be because these new TLDs were not updated for this node.

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [May 11, 2022, 7:23am UTC](https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828/2 "2022-05-11T07:23:30Z")

</div>

Hi badger101,

I assume you mean the node from the Palladian plugin, right?

> **[URL Domain Extractor](https://nodepit.com/node/ws.palladian.nodes.helper.url.UrlDomainExtractorNodeFactory)**
>
> This node extracts the domain from a given URL.

Thanks for the feedback, I’ll see how we can improve the logic. Afair the node has indeed a dictionary of known TLDs built in for proper subdomain handling which we’d need to update for new TLDs.

Just for clarification: For your specific case as highlighted above, you could simply strip away the `http://` prefix, but I assume that was just for illustration purposes and your “real” data contains full URLs with paths and / or you want to strip the subdomains, right?

I’ll keep this thread updated once there’s an update.

–Philipp

---

<div class="post-metadata">

**Author:** ![badger101](https://forum-cdn.knime.com/user_avatar/forum.knime.com/badger101/32/45755_2.png) [@badger101](https://forum.knime.com/u/badger101)\
**Post date:** [May 11, 2022, 7:36am UTC](https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828/3 "2022-05-11T07:36:03Z")

</div>

Hi @qqilihq yes that’s correct.

I discovered this accidentally when I was experimenting for something else. My dataset doesn’t have these new TLDs, but I’m sure if you can include those, it can be helpful for people working in crypto areas in the future as these are becoming more popular over time.

Anyways, the reason I stumbled across this was when I wanted to extract domains together with the protocol. For links that contain subdomains, if I were to tick the box for protocol but not subdomains , the output will not include the protocol. For example, [https://abc.def.com](https://abc.def.com) will return [def.com](http://def.com) instead of [https://def.com](https://def.com) (I can work my way with this with some alteration in the workflow onwards though).

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [August 9, 2022, 7:36am UTC](https://forum.knime.com/t/url-domain-extractor-doesnt-work-with-new-tlds/42828/4 "2022-08-09T07:36:04Z")

</div>

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