xfqz86/dsh-web-fetch-allowlist ↗★ 0
dsh-web-fetch-allowlist
DSH web fetch provider with configurable non-public CIDR allowlist (thin wrapper over @deepseek-ai/dsh-web-fetch-http, for Clash fake-ip etc.). Pure JS, no build. 适合在使用代理(如Clash fake-ip)时需要精细控制网页抓取网络策略的用户。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xfqz86/dsh-web-fetch-allowlistREADME
Read the full README ↗配置
全部可选,patch 的 config 字段:
| 字段 | 默认 | 说明 |
|---|---|---|
maxResponseBytes | 5000000 | 响应体最大字节数 |
maxBodyChars | 100000 | 解码后最大字符数 |
timeoutMs | 30000 | 抓取超时 |
maxRedirects | 5 | 同源重定向跳数 |
userAgent | dsh-web-fetch-allowlist/0.1.0 | 请求头 |
allowedNonPublicCidrs | 上述三段 | 被视为公网的额外 CIDR;[] 即严格公网策略 |