What Is Scrapling? Permitted Web Scraping with Python, Connecting It to Claude via MCP, and Setup
In Python you write `Fetcher.get(url)` and use `page.css('.price::text').getall()` to put the fields on the page into a list; Scrapling fetches the page, parses it and gives you the result as JSON, CSV or Markdown. It's an open-source (BSD-3-Clause) Python framework by Karim Shoair, used from a single page up to a full-site spider, from the command line, and from Claude through its MCP server. The software is free; which pages you fetch, and under which terms, is up to you: robots.txt, the site's terms of use and personal-data rules all apply. The spider's robots.txt check is off by default; you turn it on yourself.
- What it does
- Fetches, parses and crawls web pages for data
- Type
- Python library + command line + MCP server
- Maker
- Karim Shoair (open source)
- Requirements
- Python 3.10+
- Watch out
- robots.txt and site terms are on you; the check is off by default
- Latest release
- 0.5.1 (November 4, 2026), Beta
- Price
- Free (BSD-3-Clause)
What is Scrapling and what does it do?
You want to collect information from a web page (product name, price, headline, listing text) with code instead of copying it by hand. This is called web scraping. Scrapling puts every step of the job in one library: it fetches the page, selects the fields you want, visits many pages in turn and writes the result to a file. According to the README, fast HTTP requests, a real browser for pages that load with JavaScript, parsing and concurrent crawling are in one package.
Who it's for: developers and agencies that regularly collect data from their own site or from sites they have permission for; people who want to turn their own content archive into Markdown for AI; people who want Claude to do the collecting. Who it's not for: anyone who doesn't want to use Python and a terminal: the project is a library, not an app, and has no interface. If you want a no-code route, browser extensions such as Ultimate Web Scraper are a separate option.
Ultimate Web Scraper guide: collecting data without code
Source: Scrapling README ("What you can do with Scrapling", "Key Features"), November 23, 2026. First release October 13, 2024, latest release 0.5.1 (November 4, 2026); PyPI classification: Beta.
How does Scrapling work?
› Fetcher.get(url)Which page, which field.› page.css(".quote .text::text").getall()CSS, XPath or text search.quotes.jsonOutput fileJSON, JSONL, CSV, XML or Markdown.Sources: README, the "Fetchers basics" table in the docs, November 23, 2026.
Permitted scraping: robots.txt, site terms and personal data
Being able to read a page doesn't mean you're allowed to collect it automatically. Check three things: the site's robots.txt file (it says which paths are closed to bots and lives at sitename.com/robots.txt), the site's terms of use, and whether the page has personal data (name, email, phone, profile). The README says it plainly: by using the library you agree to comply with local and international scraping and privacy laws, and to always respect websites' terms of service and robots.txt files.
- Collecting data from your own site and your own store
- Public pages that robots.txt allows and whose terms don't forbid automated reading
- Sources whose owner gave you written permission, or that offer an official data feed or API
- Continuing on paths robots.txt closes, or collecting what the terms forbid
- Copying content behind a login, paid content or copyrighted content without permission
- Collecting personal data (customers, members, profile details) without a legal basis; this can fall under personal-data protection law
- Trying to get around a site's own protection
!The documentation also lists options that get around bot protection; don't use them, ask the site for permission or an official API.
Obeying robots.txt in a spider: Scrapling's spider has a robots_txt_obey setting; the docs say its default is off (`False`), so unless you turn it on, the spider doesn't look at robots.txt. When on, it reads each domain's robots.txt before crawling, skips closed paths (counted in stats.robots_disallowed_count) and applies Crawl-delay and Request-rate without dropping below your own download_delay. In the docs the robots.txt check is described only for the spider; the single-request fetchers (Fetcher, the browser fetcher) and the MCP server have no such setting, and the MCP guide tells you to check robots.txt by hand.
› from scrapling.spiders import Spider, Response
class PoliteSpider(Spider):
name = "quotes"
start_urls = ["https://quotes.toscrape.com"]
allowed_domains = {"quotes.toscrape.com"}
robots_txt_obey = True
download_delay = 1.0
concurrent_requests_per_domain = 2
async def parse(self, response: Response):
for quote in response.css("div.quote"):
yield {
"text": quote.css("span.text::text").get(""),
"author": quote.css("small.author::text").get(""),
}
next_page = response.css("li.next a::attr(href)").get()
if next_page:
yield response.follow(next_page, callback=self.parse)
result = PoliteSpider().start()
result.items.to_json("quotes.json", indent=True)What you get: a quotes.json file with each quote's text and author. allowed_domains keeps the spider from drifting to other sites, download_delay = 1.0 waits one second before each request, and concurrent_requests_per_domain = 2 sends at most two requests to the same site at once. The docs describe download_delay as being gentle with the server. If you don't want to pick a pace by hand, autothrottle_enabled = True adjusts the wait to the site's response speed itself and doubles the wait when it gets blocked.
The practice site the docs use, quotes.toscrape.com, is built for trying out scraping; test your code there before moving to a real site.
Sources: README (Disclaimer, Robots.txt Compliance), docs "Getting started" (Robots.txt Compliance) and "Advanced usages" (Concurrency Control, AutoThrottle), MCP server guide (Legal and Ethical Considerations), November 23, 2026. This is not legal advice.
How do you install Scrapling?
No account needed. You need Python 3.10 or later. An important distinction: plain pip install scrapling installs only the parser; to use fetchers and spiders the fetchers extra is required, otherwise you get a ModuleNotFoundError. If you'll use the browser fetcher, scrapling install also downloads the browsers; HTTP requests alone don't need a browser. The commands come from the README; in the pip command, the latest release as of November 23, 2026 (0.5.1) is pinned.
› pip install "scrapling[fetchers]==0.5.1"› scrapling installThe README's command has no version: pip install "scrapling[fetchers]". scrapling install downloads all browsers, system dependencies and fingerprint dependencies; to reinstall, scrapling install --force.
| Command | What it adds |
|---|---|
| pip install "scrapling[ai]" | The MCP server (scrapling-mcp) |
| pip install "scrapling[rag]" | Page-to-Markdown conversion (markdown()) |
| pip install "scrapling[shell]" | The scrapling shell and scrapling extract commands |
| pip install "scrapling[all]" | Everything |
› docker pull pyd4vinci/scrapling› docker pull ghcr.io/d4vinci/scrapling:latestSources: README (Installation, Optional Dependencies, Docker), PyPI scrapling 0.5.1 (November 4, 2026). Checked on November 23, 2026.
How do you use Scrapling? What you type, what you get
The examples below are derived from usage in the README and docs; the outputs are described only as far as the docs describe them. All of them run against the practice site the docs use; on your own site or a site you have permission for, you write the same code with your own address and selector.
› from scrapling.fetchers import Fetcher
page = Fetcher.get("https://quotes.toscrape.com/")
quotes = page.css(".quote .text::text").getall()
print(quotes)What you get: the text of each quote on the page in a Python list. .css() returns the elements that match the selector, and ::text gives their text. You can do the same with XPath (page.xpath(...)) or the BeautifulSoup-style page.find_all(...). On your own site, for product name and price you write the selector for your own HTML, such as .product .price::text.
› pip install "scrapling[shell]"
scrapling extract get 'https://quotes.toscrape.com/' quotes.mdWhat you get: quotes.md in the same folder. The file extension sets the format: .txt text, .md Markdown, .html HTML. Adding --css-selector '.quote' takes only the part you select; --ai-targeted selects and cleans the body content.
› pip install "scrapling[rag]"
from scrapling.spiders import ContentSpider
class DocsSpider(ContentSpider):
name = "docs"
start_urls = ["https://example.com/docs/"]
allowed_domains = {"example.com"}
output_dir = "docs_markdown"
max_pages = 200
result = DocsSpider().start()
result.items.to_jsonl("docs.jsonl")What you get: a record with url, title and markdown keys for each page; because output_dir is set, each page is also written to a .md file named after its address, and docs.jsonl is ready to load into a knowledge base. The docs say scripts, hidden content and HTML comments are removed before conversion. This template visits only the site in allowed_domains; if you write anything other than your own domain, get permission first and add robots_txt_obey = True.
› from scrapling.fetchers import StealthyFetcher
page = StealthyFetcher.fetch("https://quotes.toscrape.com/js/", wait_selector=".quote")
print(len(page.css(".quote")))What you get: the number of .quote elements once the page has been rendered in the browser. A plain Fetcher doesn't run JavaScript and would come back empty on a page like this; the browser fetcher is slower and uses more memory, so try Fetcher first. You must have downloaded the browsers with scrapling install first.
Sources: README (Basic Usage, Spiders, CLI), docs "Building RAG Systems" and "Fetchers basics", November 23, 2026.
When a selector breaks after a site redesign: adaptive parsing
The most common reason scraping code breaks is the site changing its HTML structure: the selector #p1 one day finds nothing. Scrapling's adaptive parsing feature saves the element's properties (in a SQLite database) the first time it finds it; later, if the selector comes back empty, it searches the page for the element most similar to it. According to the docs, it does this without AI, using a similarity calculation. The feature is off by default; you have to turn it on.
› from scrapling import Selector, Fetcher
# Before the change
page = Selector(page_source, adaptive=True, url="example.com")
# or
Fetcher.adaptive = True
page = Fetcher.get("https://example.com")
element = page.css("#p1", auto_save=True)
if not element: # One day the website changes?
element = page.css("#p1", adaptive=True)What you get: on the first run auto_save=True stores the element's trace; if the site changes and #p1 can no longer be found, the second call with adaptive=True returns the element's new location. You still check that what it found is the right element: a similarity calculation is a match estimate, not a certain result.
Source: docs "Adaptive scraping" and "Fetchers basics" (adaptive is off by default), November 23, 2026.
Scrapling MCP: how do you connect it to Claude Desktop and Claude Code?
MCP (Model Context Protocol) is a common connection format that lets an AI assistant use a tool. The Scrapling MCP server gives the assistant 17 tools: one-shot page fetching, browser or request sessions that stay open, screenshots, reading page content, page actions such as clicking and typing, and network history. Claude fetches the page for you and uses it in the chat as Markdown or text. The server runs on your computer.
The server sends requests to the target site from your computer. Page content that enters Claude's chat is subject to that assistant's data terms.
› pip install "scrapling[ai]"
scrapling installThen in Claude Desktop open claude_desktop_config.json through Settings › Developer › "Edit Config". On macOS the file is at ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows at %APPDATA%\Claude\claude_desktop_config.json. To make sure it works, the docs recommend using the full path of the scrapling-mcp executable (which scrapling-mcp on macOS, where scrapling-mcp on Windows).
› {
"mcpServers": {
"ScraplingServer": {
"command": "scrapling-mcp"
}
}
}After saving the file, quit Claude Desktop completely and reopen it. The docs expect an MCP indicator or the ScraplingServer name to show up in the chat box.
› claude mcp add ScraplingServer "/path/to/.venv/bin/scrapling-mcp"You find the executable's path with which scrapling-mcp on macOS or where scrapling-mcp on Windows. After adding it, restart Claude Code.
› {
"mcpServers": {
"ScraplingServer": {
"command": "docker",
"args": ["run", "-i", "--rm", "pyd4vinci/scrapling", "mcp"]
}
}
}The docs say the same logic applies to Cursor and WindSurf; they give no separate steps.
make_request tool and brings the clean, readable content into the chat. The docs recommend always telling Claude which tool to use ("use regular requests"); otherwise Claude may pick a browser for no reason. HTTP requests default to three attempts with a one-second wait between attempts.| Tool group | Tools | What it does |
|---|---|---|
| One-shot | make_request, browser_fetch_once | Fetches one address and closes its own resources when done |
| Session | browser_open, open_request_session, close_session, list_sessions, browser_fetch, session_make_request | Keeps cookies and settings between calls |
| Reading | browser_extract, browser_screenshot, browser_observe, browser_network_requests, browser_network_request | Reads the open page as Markdown, HTML or text; gives screenshots and network history |
| Action | browser_actions, browser_evaluate | Clicks, fills fields, runs JavaScript on the page |
| Session state | browser_save_state, browser_load_state | Writes cookies, local storage and IndexedDB data to a file and loads them back |
!The action tools can click and type on a page and run JavaScript; HTTP mode (scrapling-mcp --http) requires a token, so don't load the session of accounts you're logged into, and use it only on your own site and on permitted pages.
Source: Scrapling MCP server guide (Features, Installation, Setting up the MCP Server, Authentication, Examples), November 23, 2026.
Is Scrapling free? Commercial use
Yes. Scrapling is BSD-3-Clause-licensed open-source software; it has no paid plan and no account. Services such as proxies named in the README's sponsor area aren't part of the library; if you buy them separately, you pay those companies. The cost of the computer you run the code on and of internet use is yours.
- Using, modifying and embedding it in your own product, including commercially (BSD-3-Clause)
- Redistributing it in source or binary form
- Removing the copyright notice, license conditions and disclaimer from distributions
- Using the author's or contributors' names to promote a derived product without written permission
- The license doesn't give you rights to the data you collect: the site's terms and the law apply to the data
Sources: LICENSE (BSD 3-Clause), README (License, Disclaimer), November 23, 2026. The README presents the software as "for educational and research purposes"; commercial use is free under the license, but collected data needs separate permission. This is not legal advice.
Does Scrapling work on Turkish-language pages?
| Interface and docsNo | Commands, docs and README are in English (Turkish isn't among the README translations). |
|---|---|
| Pages with Turkish textUnclear | The docs have no language setting or section on Turkish characters; Scrapling reads the text on the page as it is. On your first try, check that Turkish characters come through correctly in the output. |
| Use from TurkeyYes | A Python package that runs locally; no account, payment or region restriction. |
Is Scrapling safe? Data and permissions
Fetching, parsing, the spider and Markdown conversion run on your computer; data doesn't go to a Scrapling server. The docs describe no usage telemetry. Adaptive parsing's traces stay in a local database (SQLite by default).
Requests go to the target site from your address; the site can log them. If you use it through MCP, page content enters Claude's chat and is subject to that assistant's data terms.
If pages hold names, emails, phone numbers or profile details, collecting them can fall under personal-data rules (such as KVKK). The README makes complying with privacy laws a condition; don't pull unneeded data, and use selectors to take only the fields you need.
According to the maker, with main_content_only on (the default) the MCP server removes hidden elements, HTML comments and zero-width characters; this is only a mitigation, so still don't trust page content blindly.
Sources: README (Disclaimer), MCP server guide (Key Capabilities, Authentication), "Adaptive scraping" (storage), November 23, 2026. No entries in GitHub security advisories. This is not a security audit.
Common problems and fixes
| What happens | What to do |
|---|---|
ModuleNotFoundError: scrapling.fetchers (or scrapling.spiders) | Plain pip install scrapling installs only the parser. Install the fetcher extras with pip install "scrapling[fetchers]". |
| The browser fetcher doesn't run | Download the browsers with scrapling install; if it broke, scrapling install --force. HTTP requests alone don't need a browser. |
| The spider ignores robots.txt | robots_txt_obey is off by default: add robots_txt_obey = True to the spider class. |
| A selector started coming back empty one day | The site structure may have changed. You should have turned on adaptive parsing with auto_save=True on the first selection; otherwise update the selector by hand. |
| The MCP server won't start in HTTP mode | --http requires an authentication token: provide --auth-token or SCRAPLING_MCP_AUTH_TOKEN. |
| Remote browser connection broke after upgrading | The 0.5.1 release notes announce a breaking change for remote browser connections: a new session class is now required. See the migration guide in the release notes. |
How do you uninstall Scrapling?
› pip uninstall scraplingIf you used a virtual environment, deleting the .venv folder also works. If you added it to Claude Desktop, remove the ScraplingServer entry from claude_desktop_config.json and restart the app; if you added it to Claude Code, the claude mcp remove ScraplingServer command deletes the entry. For the Docker image, docker rmi pyd4vinci/scrapling. The documentation doesn't say how to delete the browsers downloaded by scrapling install; if needed, check the Playwright documentation.
Scrapling, Firecrawl or another route?
The Scrapling row comes from its official docs; the other rows summarize those tools' own guides. This is not a ranking.
Frequently asked questions
How do you connect Scrapling MCP to Claude?
After pip install "scrapling[ai]" and scrapling install, in Claude Desktop you use Settings > Developer > Edit Config to add a "ScraplingServer" entry to claude_desktop_config.json with scrapling-mcp as the command. In Claude Code you give the path with the claude mcp add ScraplingServer command. After adding it, quit the app completely and reopen it.
What is Scrapling, and where is it on GitHub and PyPI?
Karim Shoair's open-source (BSD-3-Clause) Python web scraping framework: it puts HTTP requests, a browser, parsing and concurrent crawling in one library. The GitHub repository is D4Vinci/Scrapling, the PyPI package is scrapling; the latest release is 0.5.1 (November 4, 2026).
How do you install the Scrapling skill for Claude Code?
According to the docs, the npx skills add D4Vinci/Scrapling --skill scrapling-official command installs the skill through skills.sh; if you download it by hand, you extract the zip into the agent's skills folder (~/.claude/skills/ for Claude Code). The skill is for the agent to write Scrapling code against the current API; it doesn't install the library itself.
Scrapling or Firecrawl?
Scrapling is a library: you write the code, it's free and runs locally, and responsibility toward sites is yours. Firecrawl MCP is a cloud service that has the assistant read pages; it needs an account or key. If you want to ask an assistant without writing code, Firecrawl MCP fits; if you want to process the data in your own pipeline, Scrapling fits.
Is Scrapling free?
Yes, it's BSD-3-Clause-licensed and free; no account is needed. Sponsored services such as proxies named in the README aren't part of the library; they're separate and paid.
Does Scrapling obey robots.txt?
The spider has a robots_txt_obey setting but its default is off; with robots_txt_obey = True it skips closed paths and applies the Crawl-delay and Request-rate directives. The docs have no such setting for the single-request fetchers or the MCP server; there you have to check robots.txt by hand.
Which pages should Scrapling be used on?
On your own site or on public pages you have permission for; follow robots.txt and the terms of use, and don't pull unneeded personal data. If a site is closed to automated access, ask it for permission or an official API.
How does Scrapling differ from BeautifulSoup?
The README says its interface resembles Scrapy and BeautifulSoup and that it adds fetchers, a spider, adaptive parsing and an MCP server on top. The speed table in the README is the maker's own measurement; don't decide without measuring on your own job.
Related guides
Sources
- Scrapling README
- Documentation
- MCP server guide
- Spiders: getting started (robots.txt)
- Adaptive parsing
- Markdown for RAG
- Agent skill
- License (BSD-3-Clause)
- Release v0.5.1 (November 4, 2026)
- PyPI: scrapling
Not clear in the official sources: How accurate the output is on pages with Turkish characters (the docs have no language section; check on your first try) · which sites block the browser fetcher (not in the docs) · deleting the browsers downloaded by scrapling install (the documentation doesn't say; check the Playwright documentation). Each is covered in the relevant section along with what you can do.





