knoten / builtin / core
Get Links from Link
Get the Links content of a page from a given URL
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Download a web page by its address and list the links on it, optionally only those to certain sites.
What it does
Section titled “What it does”Get Links from Link downloads the page at URL, reads every link (href of each <a> tag) and returns the addresses as a list in the field named by Output field name.
- Relative links are turned into full addresses.
- Links to a spot on the same page (
#section),mailto:,tel:andjavascript:links are skipped. - Duplicates are removed; the order of the page is kept.
- Filter domains keeps only links to the listed sites; Exclude domains drops links to them. A domain also matches its subdomains:
example.comcoversblog.example.com.
Scripts on the page do not run, so links a site adds with JavaScript are not found.
When to use it
Section titled “When to use it”- Collect article links from a blog or news index to read each one.
- List the external sites a page links to, with your own domain in Exclude domains.
- Find all links to a specific site, such as every GitHub link on a page.
To read the links of the page open in your tab, use Get All Link.
Inputs and settings
Section titled “Inputs and settings”| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| URL (erforderlich) | Text | The URL to get the Links from. |
| Output field name (erforderlich) | Text | The name of the output field. |
| Timeout | Number | The timeout for the request. Standard: 10000 |
| Filter domains | Tags | The domains to filter. |
| Exclude domains | Tags | The domains to exclude. |
| Options | Group | The options for the node. |
| Options › Headers | Key-value pairs | The headers to send with the request. |
| Options › Include input fields | Toggle | Whether to include the input fields in the output. Standard: Off |
- Enter domains without
https://or paths, one per tag:github.com, nothttps://github.com/. - Leave Filter domains empty to keep links to all sites.
- Timeout is in milliseconds.
Outputs
Section titled “Outputs”-
Output
One item with the list under Output field name, for example { links: ["https://example.com/a", "https://other.org/b"] }. Follow with Split Out to handle each link as its own item.
Dependencies and credentials
Section titled “Dependencies and credentials”None. This node needs no connection and has no slots for other nodes.
Example workflow
Section titled “Example workflow”Read the first five articles linked from a blog’s index:
- When Started trigger.
- Get Links from Link, URL
https://blog.example.com, Output field namelinks, Filter domainsblog.example.com. - Split Out, Field To Split Out
links, Output field namelink. - Limit, Max Items
5. - Get All Text from Link, URL
{{ $input.link }}.
Common issues
Section titled “Common issues”- The list is empty or short. The site builds its links with JavaScript, or your domain filters remove them. Check Filter domains and Exclude domains, or open the page and use Get All Link.
- Links to a subdomain are missing. A filter on
blog.example.comdoes not matchwww.example.com. Use the parent domain,example.com. - “Invalid URL: …”. The address is malformed, or the request could not be sent. If the address is correct and the node runs in the web app, the site likely refuses requests from other websites; run the workflow from the extension.
- “HTTP error! status: 403” or “Request timeout”. The site refused or answered too slowly. Some sites block automated requests; raise Timeout for slow ones.
Related nodes
Section titled “Related nodes”- Get All Link: links from the page open in your tab.
- Split Out: one item per link.
- Remove Duplicates: only process links you have not seen before.
- Get All Text from Link: read each linked page.