extract_links
Extract and filter links from webpages by domain, specify internal links only, or exclude unwanted domains using this specialized web scraping tool.
Instructions
Extract all links from a webpage.
This tool is specialized for link extraction and can filter links by domain, extract only internal links, or exclude specific domains.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"ExtractLinksRequest": {
"description": "Request model for extracting links from a page.",
"properties": {
"exclude_domains": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Exclude links from these domains",
"title": "Exclude Domains"
},
"filter_domains": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Only include links from these domains",
"title": "Filter Domains"
},
"internal_only": {
"default": false,
"description": "Only extract internal links",
"title": "Internal Only",
"type": "boolean"
},
"url": {
"description": "URL to extract links from",
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"title": "ExtractLinksRequest",
"type": "object"
}
},
"properties": {
"request": {
"$ref": "#/$defs/ExtractLinksRequest",
"title": "Request"
}
},
"required": [
"request"
],
"type": "object"
}