@zack/wikipedia-scrape
Fetch a Wikipedia URL and return title, text, and image URLs.
Install
agentpm install @zack/wikipedia-scrape@0.1.5Load
import { load } from '@agentpm/sdk';
const t = await load('@zack/wikipedia-scrape@0.1.5');from agentpm import load
t = load("@zack/wikipedia-scrape@0.1.5")Weekly downloads
3
0%
Last publish
3w ago
v0.1.5
agent.json
{
"name": "wikipedia-scrape",
"version": "0.1.5",
"description": "Fetch a Wikipedia URL and return title, text, and image URLs.",
"files": [
"dist/"
],
"entrypoint": {
"args": [
"dist/index.js"
],
"command": "node",
"timeout_ms": 120000
},
"inputs": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Wikipedia URL to fetch"
}
},
"additionalProperties": false
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"title",
"text",
"images"
],
"properties": {
"ok": {
"const": true
},
"text": {
"type": "string",
"description": "Concatenated article paragraphs"
},
"title": {
"type": "string",
"description": "Page title"
},
"images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "Absolute image URLs found in the article body"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)"
},
"details": {
"type": "object",
"description": "Optional structured context"
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"readme": "README.md",
"license": {
"spdx": "MIT"
},
"runtime": {
"type": "node",
"version": "20"
}
}Compatibility
NodePython