返回顶部
l

llm-chat-scraperLLM聊天抓取器

Scrape AI chat conversations from ChatGPT, Gemini, Perplexity, Copilot, Google AI Mode, and Grok.

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

llm-chat-scraper

LLM Chat Scraper OpenClaw 技能

使用此技能通过 Scrapeless API 从各种 LLM 模型中抓取 AI 聊天对话。该技能支持 ChatGPT、Gemini、Perplexity、Copilot、Google AI Mode 和 Grok。

身份验证: 在环境变量或仓库根目录的 .env 文件中设置 XAPITOKEN。

错误处理: 失败时,脚本会将 JSON 错误写入 stderr 并以退出码 1 退出。



工具

1. ChatGPT 抓取器

抓取 ChatGPT 响应,可选网页搜索增强功能。返回包含 result_text、model、links、citations 等字段的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py chatgpt --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py chatgpt --query 最可靠的数据提取代理服务
python3 scripts/llmchatscraper.py chatgpt --query 2024年AI趋势 --web-search
python3 scripts/llmchatscraper.py chatgpt --query 最佳编程语言 --country GB

可选参数:--country 指定位置或地区,--web-search 启用网页搜索。



2. Gemini 抓取器

抓取 Google Gemini 响应。返回包含 result_text、citations 等字段的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py gemini --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py gemini --query 纽约推荐景点
python3 scripts/llmchatscraper.py gemini --query 东京最佳餐厅 --country JP

可选参数:--country 指定位置(不支持日本和台湾)。



3. Perplexity 抓取器

抓取 Perplexity AI 响应,可选网页搜索功能。返回包含 resulttext、relatedprompt、webresults、mediaitems 的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py perplexity --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py perplexity --query 最新AI发展
python3 scripts/llmchatscraper.py perplexity --query 量子计算详解 --web-search

可选参数:--country 指定位置,--web-search 启用网页搜索。



4. Copilot 抓取器

抓取 Microsoft Copilot 在不同模式(搜索、智能、聊天、推理、学习)下的响应。返回包含 result_text、mode、links、citations 的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py copilot --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py copilot --query 什么是机器学习?
python3 scripts/llmchatscraper.py copilot --query 解释区块链 --mode reasoning
python3 scripts/llmchatscraper.py copilot --query 2024年最佳笔记本电脑 --mode search

可选参数:--country 指定位置(不支持日本和台湾),--mode 指定操作模式。



5. Google AI Mode 抓取器

抓取 Google AI Mode 响应。返回包含 resulttext、resultmd、resulthtml、citations、rawurl 的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py aimode --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py aimode --query 最佳编程语言学习
python3 scripts/llmchatscraper.py aimode --query 气候变化解决方案 --country GB

可选参数:--country 指定位置(不支持日本和台湾)。



6. Grok 抓取器

抓取 xAI Grok 响应,支持不同模式(快速、专家、自动)。返回包含 fullresponse、usermodel、followupsuggestions、websearchresults 的 JSON 对象。

命令:
bash
python3 scripts/llmchatscraper.py grok --query 你的提示词

示例:
bash
python3 scripts/llmchatscraper.py grok --query 解释量子纠缠
python3 scripts/llmchatscraper.py grok --query AI领域最新动态 --mode MODELMODEEXPERT
python3 scripts/llmchatscraper.py grok --query 最新科技新闻 --mode MODELMODEFAST

可选参数:--country 指定位置(不支持日本和台湾),--mode 指定操作模式。



摘要


操作命令参数示例
ChatGPTchatgpt--querypython3 scripts/llmchatscraper.py chatgpt --query AI趋势
Gemini
gemini | --query | python3 scripts/llmchatscraper.py gemini --query 最佳餐厅 |
| Perplexity | perplexity | --query | python3 scripts/llmchatscraper.py perplexity --query 最新新闻 |
| Copilot | copilot | --query | python3 scripts/llmchatscraper.py copilot --query 解释机器学习 |
| Google AI Mode | aimode | --query | python3 scripts/llmchatscraper.py aimode --query 编程 |
| Grok | grok | --query | python3 scripts/llmchatscraper.py grok --query 量子物理 |

输出: 所有命令返回包含模型特定字段的 JSON 对象(参见上方工具描述)。



各模型响应字段

ChatGPT

  • - resulttext:Markdown 格式响应
  • model:模型标识符(例如 gpt-4)
  • websearch:布尔值,指示是否运行搜索
  • links:补充链接数组
  • citations:内容引用数组

Gemini

  • - result_text:Markdown 格式响应
  • citations:包含图标、高亮、摘要、标题、URL、网站名称的数组

Perplexity

  • - resulttext:Markdown 格式响应
  • relatedprompt:相关问题数组
  • webresults:包含名称、URL、摘要的数组
  • mediaitems:媒体引用数组

Copilot

  • - result_text:Markdown 格式响应
  • mode:使用的模式(搜索/智能/聊天/推理/学习)
  • links:外部链接数组
  • citations:包含标题、URL 的数组

Google AI Mode

  • - resulttext:回答正文
  • resultmd:Markdown 版本
  • resulthtml:HTML 版本
  • rawurl:原始 URL
  • citations:包含摘要、缩略图、标题、URL、网站名称、图标的数组

Grok

  • - fullresponse:响应内容
  • usermodel:使用的模型
  • followupsuggestions:建议问题数组
  • websearchresults:包含预览、标题、URL 的数组
  • conversation:包含对话元数据的对象

注意事项

⚠️ 地区限制:

  • - Gemini、Copilot、Google AI Mode 和 Grok 不支持日本(JP)和台湾(TW)

⚠️ 结果有效期:

  • - 任务结果有效期为 12 小时

⚠️ 速率限制:

  • - 429 错误表示超出速率限制。请降低请求频率或升级套餐。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 scrapeless-llm-chat-scraper-skill-1776110941 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 scrapeless-llm-chat-scraper-skill-1776110941 技能

通过命令行安装

skillhub install scrapeless-llm-chat-scraper-skill-1776110941

下载

⬇ 下载 llm-chat-scraper v1.0.0(免费)

文件大小: 9.55 KB | 发布时间: 2026-4-17 16:00

v1.0.0 最新 2026-4-17 16:00
Initial release of llm-chat-scraper skill.

- Scrapes AI chat conversations from ChatGPT, Gemini, Perplexity, Copilot, Google AI Mode, and Grok using Scrapeless API.
- Unified command-line interface for querying each supported model.
- Supports options like `--country`, `--mode`, and `--web-search` where appropriate.
- Outputs structured JSON with comprehensive model-specific fields for each response.
- Includes error handling and regional restriction notes.
- Authentication via `X_API_TOKEN` required.

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

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

p2p_official_large
返回顶部