@superagnt/web-scraping 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -11
- package/index.js +5 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,17 +10,11 @@ openclaw plugins install @superagnt/web-scraping
|
|
|
10
10
|
|
|
11
11
|
This package is the official **OpenClaw** plugin for **Web** social and public data via [superagnt](https://superagnt.com). Pair it with the [documentation](https://superagnt.com/docs) and your superagnt API key.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## What this plugin contains
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
`SUPERAGNT_API_KEY`. For the live workspace tool surface — the full value
|
|
17
|
-
layer (data sources plus workspace Postgres, schedules, canvases,
|
|
18
|
-
enrichment), growing server-side with no plugin update — install the
|
|
19
|
-
primary superagnt plugin instead:
|
|
15
|
+
A fixed, baked-in toolset for the **Web** endpoints listed below — nothing else. It authenticates with your `SUPERAGNT_API_KEY` and calls the superagnt REST API directly. It does not add tools for other platforms and does not change after install; new capabilities only arrive through an explicit plugin update.
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
openclaw plugins install @superagnt/superagnt
|
|
23
|
-
```
|
|
17
|
+
Prefer MCP? The `@superagnt/superagnt` plugin connects the workspace MCP server instead, whose tool surface is managed by the user in the dashboard.
|
|
24
18
|
|
|
25
19
|
## Overview
|
|
26
20
|
|
|
@@ -64,8 +58,8 @@ Use a single **superagnt API key** (Bearer token). Set `SUPERAGNT_API_KEY` in yo
|
|
|
64
58
|
|
|
65
59
|
## Related
|
|
66
60
|
|
|
67
|
-
- **Skill (curl-oriented):** `clawhub install web-scraping` on [ClawHub](https://clawhub.ai/superagnt/skills/web-scraping)
|
|
68
|
-
- **All platforms plugin:** `@superagnt/
|
|
61
|
+
- **Skill (curl-oriented):** `clawhub install superagnt/web-scraping` on [ClawHub](https://clawhub.ai/superagnt/skills/web-scraping)
|
|
62
|
+
- **All platforms plugin:** `@superagnt/social-data` if you need LinkedIn, YouTube, TikTok, X, Instagram, Reddit, and Facebook in one package.
|
|
69
63
|
|
|
70
64
|
## License
|
|
71
65
|
|
package/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { homedir as _homedir } from 'node:os'
|
|
|
7
7
|
import { join as _join } from 'node:path'
|
|
8
8
|
import { existsSync as _existsSync, readFileSync as _readFileSync } from 'node:fs'
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// SUPERAGNT_API_URL overrides the API origin (QA/staging); customers never set it.
|
|
11
|
+
const BASE_URL = (process.env.SUPERAGNT_API_URL || 'https://api.superagnt.com') + '/v1/data/web'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -151,7 +152,7 @@ export default function register(api) {
|
|
|
151
152
|
"url"
|
|
152
153
|
]
|
|
153
154
|
},
|
|
154
|
-
execute: async (input) => {
|
|
155
|
+
execute: async (_toolCallId, input) => {
|
|
155
156
|
const key = ensureApiKey()
|
|
156
157
|
const params = parseToolInput(input)
|
|
157
158
|
return callSuperagnt(key, 'POST', '/scrape', undefined, params)
|
|
@@ -213,7 +214,7 @@ export default function register(api) {
|
|
|
213
214
|
"query"
|
|
214
215
|
]
|
|
215
216
|
},
|
|
216
|
-
execute: async (input) => {
|
|
217
|
+
execute: async (_toolCallId, input) => {
|
|
217
218
|
const key = ensureApiKey()
|
|
218
219
|
const params = parseToolInput(input)
|
|
219
220
|
return callSuperagnt(key, 'POST', '/search', undefined, params)
|
|
@@ -263,7 +264,7 @@ export default function register(api) {
|
|
|
263
264
|
"url"
|
|
264
265
|
]
|
|
265
266
|
},
|
|
266
|
-
execute: async (input) => {
|
|
267
|
+
execute: async (_toolCallId, input) => {
|
|
267
268
|
const key = ensureApiKey()
|
|
268
269
|
const params = parseToolInput(input)
|
|
269
270
|
return callSuperagnt(key, 'POST', '/map', undefined, params)
|
package/openclaw.plugin.json
CHANGED