| name | scrape-website |
| description | Scrape a single URL using anakin-cli and return clean markdown, structured JSON, or the full raw API response. |
Scrape a website
Trigger
Extracting content from a single web page — an article, product page, documentation, or any URL.
Workflow
- Verify anakin-cli is authenticated by running
anakin status.
- Scrape the URL in the requested format:
- Markdown (default):
anakin scrape "<url>" -o output.md
- Structured JSON:
anakin scrape "<url>" --format json -o output.json
- Full raw response:
anakin scrape "<url>" --format raw -o output.json
- For JavaScript-heavy or single-page app sites, add the
--browser flag.
- For geo-targeted content, add
--country <code>.
- If the scrape times out, increase with
--timeout <seconds>.
- Read the output file and present results to the user.
Commands
anakin scrape "<url>" -o output.md
anakin scrape "<url>" --format json -o output.json
anakin scrape "<url>" --format raw -o output.json
anakin scrape "<url>" --browser -o output.md
anakin scrape "<url>" --country gb -o output.md
anakin scrape "<url>" --timeout 300 -o output.md
Guardrails
- Always quote URLs to prevent shell interpretation of
?, &, # characters.
- Default to markdown format unless the user asks for structured data or raw output.
- Use
--browser only when a standard scrape returns empty or incomplete content.
- On 429 errors, wait before retrying rather than looping immediately.
Output
- Scraped content in the requested format
- File path where results were saved