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:Install fetcher dependencies
Fetcher&FetcherSession(HTTP requests)DynamicFetcher&DynamicSession(Playwright browser automation)StealthyFetcher&StealthySession(anti-bot bypass)
AI Features
Install the MCP server for AI-assisted web scraping:- Built-in MCP server integration
- AI-powered content extraction
- Integration with Claude, Cursor, and other AI tools
Shell Features
Install interactive shell and CLI extraction tools:- Interactive Web Scraping shell with IPython
scrapling shellcommandscrapling extractcommand 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:- All Scrapling features (
[all]) - All browsers pre-installed
- System dependencies configured
- Ready to use out of the box
Using the Docker Image
Verify Installation
Confirm Scrapling is installed correctly:Installation Summary
Here’s a quick reference for installation commands:| Use Case | Command |
|---|---|
| Parser only | pip install scrapling |
| HTTP + Browser fetchers | pip install "scrapling[fetchers]" + scrapling install |
| AI integration | pip install "scrapling[ai]" |
| Interactive shell | pip install "scrapling[shell]" |
| Everything | pip install "scrapling[all]" + scrapling install |
| Docker | docker pull pyd4vinci/scrapling |
Troubleshooting
Browser installation fails
Browser installation fails
If
scrapling install fails, try:- Force reinstall:
scrapling install --force - Check system dependencies for Playwright
- Ensure you have enough disk space (browsers are ~300MB each)
- Check Python version:
python --version(must be 3.10+)
Import errors after installation
Import errors after installation
If you get import errors:
- Verify installation:
pip show scrapling - Check you installed the right extras:
pip install "scrapling[fetchers]" - For browser features, ensure you ran:
scrapling install - Try in a fresh Python session or restart your IDE
Permission errors on Linux/Mac
Permission errors on Linux/Mac
If you encounter permission errors:
- Use a virtual environment (recommended)
- Or install with
--userflag:pip install --user scrapling - 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