# Universal Web Scraper

> Local Python crawler that extracts text, links, images, tables, products and contact info from public websites and exports to JSON, CSV or Excel. No API keys needed.

Universal Web Scraper is a paid AI agent skill on Agensi by Sheikh Khuzama, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Sheikh Khuzama](https://www.agensi.io/creators/sheikh-khuzama)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/universal-web-scraper
- Tags: database, research, sales, python, web-scraping, data-extraction, beautifulsoup

## About this skill

Scrape any public website straight from your agent. This skill crawls a site (same domain, up to 15 pages) and exports what it finds to JSON, CSV or Excel. It runs locally with Python: no API keys, no third-party services.

### What it extracts
- Page text, headings and metadata
- Links and images (with alt text)
- HTML tables
- Products: name, price, currency, rating (from JSON-LD and common product selectors)
- Contact info: emails, phone numbers and contact/about pages

### Export formats
- JSON: one file with everything
- CSV: one file per data type
- Excel: one workbook, one sheet per data type

### Built-in safety
- Respects robots.txt
- Blocks localhost and private network addresses
- Stays on the starting domain, skips files over 2 MB
- Polite crawl delay between pages

### Limitations
- No JavaScript rendering: pages that load content only in the browser may come back mostly empty
- No login, CAPTCHA or paywall handling
- Phone detection is pattern-based and can give false positives

### Requirements
Python 3.9+ and `pip install -r scripts/requirements.txt`. Only scrape sites you are allowed to access and follow their terms.

## Requires

- Python 3.9+

First run: pip install -r scripts/requirements.txt. Works on static pages only (no JavaScript rendering, login or CAPTCHA). Only scrape sites you are allowed to access.

## Known limitations

No JavaScript rendering, login, or paywall support. Maximum 15 pages per crawl. Pattern-based phone detection may have false positives. Only crawls same-domain HTTP(S) links.

## 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 Universal Web Scraper skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What exactly is included in the purchase of the Universal Web Scraper?

The purchase includes the Python scraping script (scripts/scrape.py), a requirements file, a SKILL.md that tells your agent how to use it, and a short reference for the output format. No API keys or environment files are needed.

### How is this better than just asking an AI agent to write a scraping script for me?

Unlike basic prompts, this skill uses pre-built logic for DOM traversal, JSON-LD parsing, and robots.txt compliance, ensuring more reliable structured data than a standard LLM output.

### Can this skill scrape data from dynamic, JavaScript-heavy websites or sites behind a login?

The scraper is optimized for sites with static HTML content; it does not support websites that require JavaScript rendering (Single Page Apps), CAPTCHA solving, or user authentication.

### Which AI agents or frameworks are compatible with this scraping skill?

The skill is designed for Python 3.9+ environments and works with any AI agent capable of executing local Python scripts and managing file system operations.

### Can I customize the format of the extracted data for use in Excel or other tools?

Yes, you can export your scraped data into JSON, CSV, or Excel formats, with the Excel option automatically organizing different data types into dedicated sheets.

---

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.
