llm-chat-scraper
Scrape AI chat conversations from ChatGPT, Gemini, Perplexity, Copilot, Google AI Mode, and Grok.
git clone https://github.com/scrapeless-ai/llm-chat-scraper-skill
git clone --depth=1 https://github.com/scrapeless-ai/llm-chat-scraper-skill ~/.claude/skills/scrapeless-ai-llm-chat-scraper-skill-llm-chat-scraper
SKILL.mdLLM Chat Scraper OpenClaw Skill
Use this skill to scrape AI chat conversations from various LLM models via the Scrapeless API. The skill supports ChatGPT, Gemini, Perplexity, Copilot, Google AI Mode, and Grok.
Authentication: Set
X_API_TOKEN in your environment or in a .env file in the repo root.
Errors: On failure the script writes a JSON error to stderr and exits with code 1.
Tools
1. ChatGPT Scraper
Scrape ChatGPT responses with optional web search enrichment. Returns JSON object with
result_text, model, links, citations, and more.
Command:
python3 scripts/llm_chat_scraper.py chatgpt --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py chatgpt --query "Most reliable proxy service for data extraction" python3 s Optional: `--country` fcripts/llm_chat_scraper.py chatgpt --query "AI trends in 2024" --web-search python3 scripts/llm_chat_scraper.py chatgpt --query "Best programming languages" --country GB
or location,
--web-search to enable web search.
2. Gemini Scraper
Scrape Google Gemini responses. Returns JSON object with
result_text, citations, and more.
Command:
python3 scripts/llm_chat_scraper.py gemini --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py gemini --query "Recommended attractions in New York" python3 scripts/llm_chat_scraper.py gemini --query "Best restaurants in Tokyo" --country JP
Optional:
--country for location (JP and TW not supported).
3. Perplexity Scraper
Scrape Perplexity AI responses with optional web search. Returns JSON object with
result_text, related_prompt, web_results, media_items.
Command:
python3 scripts/llm_chat_scraper.py perplexity --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py perplexity --query "Latest AI developments" python3 scripts/llm_chat_scraper.py perplexity --query "Quantum computing explained" --web-search
Optional:
--country for location, --web-search to enable web search.
4. Copilot Scraper
Scrape Microsoft Copilot responses across different modes (search, smart, chat, reasoning, study). Returns JSON object with
result_text, mode, links, citations.
Command:
python3 scripts/llm_chat_scraper.py copilot --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py copilot --query "What is machine learning?" python3 scripts/llm_chat_scraper.py copilot --query "Explain blockchain" --mode reasoning python3 scripts/llm_chat_scraper.py copilot --query "Best laptop 2024" --mode search
Optional:
--country for location (JP and TW not supported), --mode for operation mode.
5. Google AI Mode Scraper
Scrape Google AI Mode responses. Returns JSON object with
result_text, result_md, result_html, citations, raw_url.
Command:
python3 scripts/llm_chat_scraper.py aimode --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py aimode --query "Best programming languages to learn" python3 scripts/llm_chat_scraper.py aimode --query "Climate change solutions" --country GB
Optional:
--country for location (JP and TW not supported).
6. Grok Scraper
Scrape xAI Grok responses with different modes (FAST, EXPERT, AUTO). Returns JSON object with
full_response, user_model, follow_up_suggestions, web_search_results.
Command:
python3 scripts/llm_chat_scraper.py grok --query "your prompt"
Examples:
python3 scripts/llm_chat_scraper.py grok --query "Explain quantum entanglement" python3 scripts/llm_chat_scraper.py grok --query "What's happening in AI" --mode MODEL_MODE_EXPERT python3 scripts/llm_chat_scraper.py grok --query "Latest tech news" --mode MODEL_MODE_FAST
Optional:
--country for location (JP and TW not supported), --mode for operation mode.
Summary
| Action | Command | Argument | Example |
|---|---|---|---|
| ChatGPT | | | |
| Gemini | | | |
| Perplexity | | | |
| Copilot | | | |
| Google AI Mode | | | |
| Grok | | | |
Output: All commands return JSON objects with model-specific fields (see tool descriptions above).
Response Fields by Model
ChatGPT
: Markdown responseresult_text
: Model identifier (e.g., gpt-4)model
: Boolean indicating if search ranweb_search
: Array of supplementary linkslinks
: Array of content referencescitations
Gemini
: Markdown responseresult_text
: Array with favicon, highlights, snippet, title, url, website_namecitations
Perplexity
: Markdown responseresult_text
: Array of related questionsrelated_prompt
: Array with name, url, snippetweb_results
: Array of media referencesmedia_items
Copilot
: Markdown responseresult_text
: Mode used (search/smart/chat/reasoning/study)mode
: Array of outbound linkslinks
: Array with title, urlcitations
Google AI Mode
: Answer bodyresult_text
: Markdown versionresult_md
: HTML versionresult_html
: Original URLraw_url
: Array with snippet, thumbnail, title, url, website_name, faviconcitations
Grok
: Response contentfull_response
: Model useduser_model
: Array of suggested questionsfollow_up_suggestions
: Array with preview, title, urlweb_search_results
: Object with conversation metadataconversation
Notes
⚠️ Regional Restrictions:
- Gemini, Copilot, Google AI Mode, and Grok do not support Japan (JP) and Taiwan (TW)
⚠️ Result Expiry:
- Task results are available for 12 hours
⚠️ Rate Limits:
- 429 errors indicate rate limit exceeded. Reduce request frequency or upgrade plan.