Skip to main content

Requirements

Scrapling requires Python 3.10 or higher.

Basic Installation

Install the core Scrapling library (parser engine only):
This installation includes only the parser engine and its dependencies, without any fetchers or command-line features.

Optional Dependencies

Scrapling offers several optional dependency groups depending on your needs:

Fetchers

Install fetcher dependencies for HTTP requests, browser automation, and stealth capabilities:
1

Install fetcher dependencies

This installs dependencies for:
  • Fetcher & FetcherSession (HTTP requests)
  • DynamicFetcher & DynamicSession (Playwright browser automation)
  • StealthyFetcher & StealthySession (anti-bot bypass)
2

Install browsers

After installing fetcher dependencies, download browsers and system dependencies:
This downloads:
  • Chromium and Chrome browsers
  • System dependencies for browser automation
  • Fingerprint manipulation dependencies
You must run scrapling install after installing scrapling[fetchers] to use browser-based fetchers (DynamicFetcher, StealthyFetcher).

AI Features

Install the MCP server for AI-assisted web scraping:
This enables:
  • Built-in MCP server integration
  • AI-powered content extraction
  • Integration with Claude, Cursor, and other AI tools
The MCP server features powerful capabilities that leverage Scrapling to extract targeted content before passing it to AI, reducing token usage and costs. See the MCP Server guide for details.

Shell Features

Install interactive shell and CLI extraction tools:
This enables:
  • Interactive Web Scraping shell with IPython
  • scrapling shell command
  • scrapling extract command for extracting content without code

All Features

Install everything at once:
Remember to run scrapling install after installing [all] to set up browser dependencies if you plan to use fetchers.

Docker Installation

Scrapling provides pre-built Docker images with all extras and browsers included:
The Docker image includes:
  • All Scrapling features ([all])
  • All browsers pre-installed
  • System dependencies configured
  • Ready to use out of the box
Docker images are automatically built and pushed using GitHub Actions from the repository’s main branch.

Using the Docker Image

Verify Installation

Confirm Scrapling is installed correctly:
1

Test core parser

2

Test HTTP fetcher (if installed)

3

Test browser installation (if installed)

Or test in Python:

Installation Summary

Here’s a quick reference for installation commands:

Troubleshooting

If scrapling install fails, try:
  1. Force reinstall: scrapling install --force
  2. Check system dependencies for Playwright
  3. Ensure you have enough disk space (browsers are ~300MB each)
  4. Check Python version: python --version (must be 3.10+)
If you get import errors:
  1. Verify installation: pip show scrapling
  2. Check you installed the right extras: pip install "scrapling[fetchers]"
  3. For browser features, ensure you ran: scrapling install
  4. Try in a fresh Python session or restart your IDE
If you encounter permission errors:
  1. Use a virtual environment (recommended)
  2. Or install with --user flag: pip install --user scrapling
  3. For system-wide installation, use sudo (not recommended)

Next Steps

Quick Start

Start scraping in 5 minutes

Choose a Fetcher

Learn which fetcher fits your needs

Selection Methods

Master CSS, XPath, and more

Build Spiders

Scale to full crawling