# Scrape Any Website to Markdown, CSV or JSON

> Scrape any website from your agent: clean Markdown, product lists to CSV, whole-site crawls, contact details, JavaScript-heavy pages through a real local browser, and old versions of pages from the Wayback Machine. Open source, runs locally, no API keys.

Scrape Any Website to Markdown, CSV or JSON is a free AI agent skill on Agensi by Ala Ud Din Burki, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ala Ud Din Burki](https://www.agensi.io/creators/alaudin-burki)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scrape-any-website-to-markdown-csv-or-json
- Tags: database, research, automation, python, data-extraction, scraping

## About this skill

Turn any web page into data your agent can use, with the open-source scrape-any CLI running on your own machine.

**What you can ask for**
- "Get this article as Markdown"
- "Turn this product list into a CSV, all pages"
- "Crawl these docs and pack them for an LLM" (llms.txt + llms-full.txt)
- "Find the emails, phones and social profiles on these 20 company sites"
- "Show me this page as it looked in 2019" (Wayback Machine)
- "Every day, give me only the new listings on this page"

**How it works**
It fetches pages over fast HTTP and switches to a real stealth browser on its own when a page needs JavaScript or blocks simple bots. Every run ends with a summary of pages read, rows found, failures and empty fields, so your agent reports what actually happened instead of guessing.

**Why this one**
- No API keys, no accounts, no per-call fees: it runs locally.
- Respects robots.txt by default; polite delays; hard row caps.
- Treats scraped text as data, never as instructions.
- MIT licensed; the source code is public on GitHub as scrape-any.

## Requires

- Python 3.12+
- scrape-any CLI (free, open source)
- Optional: Chromium browser (one-time 200 MB download)

The agent asks before installing scrape-any or downloading the browser. No API keys or accounts needed.

## Known limitations

Requires Python 3.12+. Initial stealth browser setup takes 200MB. Respects robots.txt by default. Cannot bypass logins or paywalls.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Scrape Any Website to Markdown, CSV or JSON skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Can it read sites that block bots or need JavaScript?

Usually. It tries fast HTTP first and switches to a real headless browser on your machine when a page is a bot wall or an empty JavaScript app. Some sites still block it; the run summary then says 'blocked' instead of returning empty data, and the skill tells your agent what to try next.

### Which AI agents does it work with?

Any agent that reads SKILL.md and can run terminal commands, such as Claude Code, Codex CLI, Cursor and Gemini CLI. The agent runs the scrape-any command-line tool locally.

### Can it crawl a whole website?

Yes. It can follow links on the same site (--crawl) or start from the site's sitemaps (--sitemap), with page limits, include/exclude filters and polite delays. Output can be JSON lines, Markdown files, or an llms.txt pack for AI agents.

### How does the Wayback Machine part work?

Ask for a page 'as it was in 2019' and it reads the Internet Archive's copy closest to that date, keeping the original links, so extraction and crawling work on old or deleted sites too. It can also list every saved version of a page, or every archived URL of a domain.

### What do I get, and does it cost anything to run?

The skill (instructions, a command reference, recipes and a read-only setup check) is free. It uses the free, MIT-licensed scrape-any CLI, which your agent installs after asking you. There are no API keys, accounts or per-call fees; everything runs on your computer.

### Is scraping with it legal?

It respects robots.txt by default and keeps a polite delay between requests. You are responsible for each site's terms of use and for privacy law (such as GDPR) when you collect personal data like emails or phone numbers. It is not for getting past logins or paywalls you have no right to.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
