返回顶部
p

pangolinfo-ai-serp穿山甲AI搜索

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.5
安全检测
已通过
165
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

pangolinfo-ai-serp

Pangolinfo AI SERP 技能

通过穿山甲API实现谷歌AI模式搜索与标准SERP提取,包含AI概览和引用来源。

何时使用此技能

触发条件:Google SERP抓取、AI概览提取、AI模式搜索、谷歌引用提取、抓取Google SERP、谷歌AI概览、引用来源提取

请勿将此技能用于:亚马逊产品搜索、谷歌趋势、谷歌地图或非谷歌搜索引擎。

前置条件

  • - Python 3.8+(仅需标准库——无需pip install)
  • pangolinfo.com注册穿山甲账户

环境变量

设置以下任一变量:

变量选项描述
PANGOLINAPIKEYA(推荐)API密钥——跳过登录
PANGOLINEMAIL + PANGOLINPASSWORD
B | 账户凭证 |

API密钥解析顺序:PANGOLINAPIKEY环境变量 > 缓存的~/.pangolinapikey(如已缓存)> 重新登录。

macOS SSL修复

若遇到错误代码SSL_CERT,请运行:
bash
/Applications/Python\ 3.x/Install\ Certificates.command

或:pip3 install certifi && export SSLCERTFILE=$(python3 -c import certifi; print(certifi.where()))

脚本执行

主脚本位于此技能目录下的scripts/pangolin.py。

bash
python3 scripts/pangolin.py --q 你的查询

意图到命令映射

AI模式搜索(默认)

带参考文献的AI生成答案。默认模式,消耗2积分

bash
python3 scripts/pangolin.py --q 什么是量子计算

标准SERP

传统谷歌搜索结果 + 可选AI概览。消耗2积分

bash
python3 scripts/pangolin.py --q 2025年最佳数据库 --mode serp

SERP Plus(更便宜)

与SERP相同,但仅消耗1积分。使用googleSearchPlus解析器。

bash
python3 scripts/pangolin.py --q 2025年最佳数据库 --mode serp-plus

带截图的SERP

bash
python3 scripts/pangolin.py --q 2025年最佳数据库 --mode serp --screenshot

带地区的SERP

bash
python3 scripts/pangolin.py --q 2025年最佳数据库 --mode serp --region us

多轮对话(仅AI模式)

bash
python3 scripts/pangolin.py --q kubernetes --follow-up 如何部署 --follow-up 监控工具

认证检查(不消耗积分)

bash
python3 scripts/pangolin.py --auth-only

所有CLI选项

选项类型默认值描述
--q字符串必填搜索查询
--mode
ai-mode \| serp \| serp-plus | ai-mode | API模式 | | --screenshot | 标志 | 关闭 | 捕获页面截图 | | --follow-up | 字符串(可重复) | 无 | 后续问题(仅ai-mode) | | --num | 整数(1-100) | 10 | 结果数量 | | --region | 字符串 | 无 | 地理区域(仅SERP/SERP-Plus)。见下方支持区域。 | | --auth-only | 标志 | 关闭 | 仅认证检查(无查询,不消耗积分) | | --raw | 标志 | 关闭 | 输出原始API响应 | | --timeout | 整数 | 120 | 请求超时时间(秒) | | --cache-key | 标志 | 关闭 | 将API密钥持久化到~/.pangolinapikey。也可通过PANGOLIN_CACHE=1设置。 |

支持的区域

代码语言代码语言
us英语cn中文
uk
英语 | dk | 丹麦语 | | au | 英语 | no | 挪威语 | | ca | 英语 | se | 瑞典语 | | nz | 英语 | nl | 荷兰语 | | de | 德语 | pt | 葡萄牙语 | | fr | 法语 | es | 西班牙语 | | it | 意大利语 | jp | 日语 |

费用

模式积分解析器
AI模式2googleAiSearch
SERP
2 | googleSearch | | SERP Plus | 1 | googleSearchPlus |

仅在成功请求(API代码为0)时消耗积分。认证检查不消耗积分。

输出格式

成功时输出JSON到stdout,失败时输出结构化错误JSON到stderr

成功示例(AI模式)

json
{
success: true,
task_id: 1768988520324-766a695d93b57aad,
results_num: 1,
aioverviewcount: 1,
ai_overview: [
{
content: [量子计算使用量子比特(qubits)...],
references: [
{
title: 量子计算 - 维基百科,
url: https://zh.wikipedia.org/wiki/量子计算,
domain: 维基百科
}
]
}
]
}

错误示例(stderr)

json
{
success: false,
error: {
code: API_ERROR,
message: 搜索API返回错误。,
api_code: 2001,
hint: 积分不足。请前往https://pangolinfo.com/?referrer=clawhub_serp充值
}
}

响应呈现

  1. 1. 使用自然语言——切勿直接输出原始JSON。
  2. 匹配用户使用的语言。
  3. 先总结AI概览,然后列出带URL的自然结果。
  4. 出错时,使用hint字段解释问题。

退出代码

代码含义
0成功
1
API错误(穿山甲返回非零代码) | | 2 | 使用错误(参数错误) | | 3 | 网络错误 | | 4 | 认证错误 |

错误参考

脚本错误代码

代码含义解决方法
MISSINGENV无凭证设置PANGOLINAPIKEY,或PANGOLINEMAIL + PANGOLINPASSWORD
AUTHFAILED
凭证错误 | 验证邮箱和密码 | | RATE_LIMIT | 请求过多 | 等待后重试 | | NETWORK | 连接问题 | 检查网络/防火墙 | | SSL_CERT | 证书错误 | 参见上方macOS SSL修复 | | APIERROR | 穿山甲API错误 | 检查apicode和hint | | PARSE_ERROR | API响应无效 | 重试;可能是临时问题 |

穿山甲API错误代码

API代码含义解决方法
1004令牌无效脚本自动重试。如持续出现,重新认证。
1009
解析器名称无效 | 检查--mode值。 | | 2001 | 积分不足 | 前往pangolinfo.com充值 | | 2005 | 无有效套餐 | 前往pangolinfo.com订阅 | | 2007 | 账户已过期 | 前往pangolinfo.com续费 | | 2009 | 达到使用限制 | 等待下一个计费周期或联系支持 | | 2010 | 账单日未配置 | 联系支持 | | 4029 | 请求频率限制(服务器) | 降低请求频率 | | 10000 | 任务执行失败 | 重试。检查查询格式。 | | 100

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pangolinfo-ai-serp-1776022294 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pangolinfo-ai-serp-1776022294 技能

通过命令行安装

skillhub install pangolinfo-ai-serp-1776022294

下载

⬇ 下载 pangolinfo-ai-serp v1.0.5(免费)

文件大小: 14.25 KB | 发布时间: 2026-4-13 11:24

v1.0.5 最新 2026-4-13 11:24
**Summary:** This release refines documentation, simplifies setup, and removes outdated references.

- Added a detailed first-time setup guide at `references/setup-guide.md`
- Removed older, redundant API reference and example files
- SKILL.md is now more concise with improved quickstart instructions and error/option tables
- "SERP Plus" (cheaper parser mode) and full CLI option coverage now documented
- All AI Agent response and error-handling rules are clarified and streamlined

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部