查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "要抓取的完整链接,包含 http:// 或 https://。"
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "最多收集的链接数量。"
},
"super": {
"type": "boolean",
"description": "通过真实设备访问,处理较严格的反自动化限制;消耗更多上游资源和 tokens,默认 false。"
},
"geoCode": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "访问页面使用的两位国家代码,默认 us。"
},
"timeout": {
"type": "integer",
"maximum": 300,
"minimum": 1,
"description": "等待页面完全加载的最长秒数,默认 300。"
},
"maxDepth": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "从起始链接计算的最大抓取深度。"
},
"maxPages": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "最多抓取的页面数量,范围 1 至 20。"
},
"proxyCountry": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "代理出口的两位国家代码,默认 us。"
},
"excludePatterns": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "跳过符合这些上游规则的链接。"
},
"includePatterns": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "仅抓取符合这些上游规则的链接。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}