Skip to content
INSTALL AUDIT · REAL INSTALL, LOGGED

Scrapling 0.5.1 install audit (pip): is it safe, and the chromium-1248 "Executable doesn't exist" fix

Audited on 2026-11-13 against version 0.5.1, upstream commit bb223f2. Package: scrapling on PyPI. Repository: github.com/D4Vinci/Scrapling.

We ran pip install "scrapling[fetchers]" in a throwaway Ubuntu 24.04 container and recorded what it downloaded, what it wrote, what it printed and what the first commands returned. Everything below marked as our result comes from those logs. Upstream claims are labelled as such.

Quick verdict

Install risk: Medium
pip itself is low risk: it installs wheels from PyPI and runs no install hooks for this package (we did not trace pip's own connections). The footprint is scrapling install: it runs Playwright's browser download (about 700M in ~/.cache/ms-playwright) and playwright install-deps, which installs system packages with apt and needs root. On 2026-11-13 it also downloaded the wrong Chromium revision for the 0.5 browser backend.
Runtime risk: moderate
It is a scraping library with a stealth browser, so the runtime risk is what you point it at and what you expose. Its optional MCP server (scrapling[ai], which we did not run) listens on 127.0.0.1:8000 by default with --http; upstream help says --http refuses to start without a token unless you pass --no-auth.

pip install "scrapling[fetchers]==0.5.1" was uneventful in our Ubuntu 24.04 containers (387M venv, no install hooks). The problem comes next: scrapling install ran Playwright's installer, which on 2026-11-13 fetched chromium-1254, while Scrapling 0.5 drives the browser through Patchright, which wants chromium-1248. StealthyFetcher then failed with Executable doesn't exist at /root/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome, even though scrapling install exited 0. The smallest fix we verified is python -m patchright install --with-deps chromium as root. On minimal images, scrapling install can also die with exit status 127 because libatomic.so.1 is missing.

Supported platforms (PyPI classifier): OS Independent. We tested Linux only. Jump to the chromium-1248 fix, libatomic.so.1 / exit status 127, libglib-2.0.so.0 / TargetClosedError, DynamicFetcher ImportError, the install we verified or what it contacts during install

METHOD

What we ran

Docker ubuntu:24.04 (Ubuntu 24.04.5 LTS) with Ubuntu's apt Python 3.12.3, started with docker run --rm --cpus 2 --memory 3g; run 1 added --cap-add NET_ADMIN for tcpdump. Each run used a fresh container. Only the read-only test script was mounted, with no host secrets or environment variables. Every install went into a virtual environment except run 1's deliberate system-pip attempt. Runs 1, 3, 4 and 5 ran as root; run 2 (apart from one root step) and parts of run 3 ran as a user called dev without sudo; in run 6, dev had passwordless sudo (NOPASSWD). Run 1's image also had python3-pip and tcpdump; runs 2 to 6 used a minimal image with only python3, python3-venv and ca-certificates.

All runs: container
docker run --rm --cpus 2 --memory 3g -v <runN.sh>:/<script>:ro ubuntu:24.04 bash /<script>   # run 1 adds --cap-add NET_ADMIN
Run 1 (root): prerequisites
apt-get install -y -qq python3 python3-venv python3-pip ca-certificates tcpdump
Run 1: system pip (PEP 668)
pip install scrapling==0.5.1
Run 1: core-only install in a venv
python3 -m venv /opt/venv && . /opt/venv/bin/activate
pip install -q --upgrade pip
pip install scrapling==0.5.1
python -c "from scrapling.fetchers import Fetcher"
scrapling --help
Run 1: fetchers extra
pip install "scrapling[fetchers]==0.5.1"
pip list | grep -iE 'playwright|patchright|curl.cffi|browserforge|scrapling|camoufox'
du -sh /opt/venv
Run 1: before scrapling install
python -c "from scrapling.fetchers import Fetcher; r = Fetcher.get('https://example.com'); ..."
python -c "from scrapling.fetchers import DynamicFetcher; ..."
python -c "from scrapling.fetchers import StealthyFetcher; r = StealthyFetcher.fetch('https://example.com'); ..."
Run 1: scrapling install with DNS capture, files written
touch /tmp/marker-g
tcpdump -i any -n -l 'udp port 53' > /tmp/dns.log &
scrapling install
find / -xdev -newer /tmp/marker-g -type f
du -sh /root/.cache/ms-playwright/*
Run 1: second scrapling install, fetchers after install, uninstall
scrapling install
python -c "from scrapling.fetchers import StealthyFetcher; ..."
pip uninstall -y scrapling
du -sh /root/.cache/ms-playwright
pip list | grep -iE 'playwright|patchright|curl.cffi|browserforge'
Run 2 (user dev, no sudo): minimal image
apt-get install -y -qq python3 python3-venv ca-certificates   # as root
useradd -m dev
# as dev:
python3 -m venv ~/venv && . ~/venv/bin/activate
pip install -q "scrapling[fetchers]==0.5.1"
scrapling install
python -m playwright install chromium
Run 2: root installs system deps for dev's venv
/home/dev/venv/bin/python -m playwright install-deps chromium
Run 3 (root): which Chromium revision each package expects
pip install -q "scrapling[fetchers]==0.5.1"
python -m playwright install --dry-run chromium
python -m patchright install --dry-run chromium
Run 3: scrapling install, then patchright install
scrapling install
python /tmp/s.py   # the StealthyFetcher test below
python -m patchright install chromium
python /tmp/s.py
Run 3: separate venv, --force
rm -r /root/.cache/ms-playwright
python3 -m venv /opt/v2 && /opt/v2/bin/pip install -q "scrapling[fetchers]==0.5.1"
/opt/v2/bin/scrapling install --force
/opt/v2/bin/python /tmp/s.py
Run 3: non-root diagnosis (user dev)
~/venv/bin/python -m playwright install chromium
~/venv/bin/scrapling install
~/venv/bin/python -m patchright install chromium
~/venv/bin/python /tmp/s.py
Run 4 (root), path A: libatomic1, scrapling install, patchright install
pip install -q "scrapling[fetchers]==0.5.1"
apt-get install -y -qq libatomic1
scrapling install
python /tmp/s.py
python -m patchright install chromium
python /tmp/s.py
du -sh /root/.cache/ms-playwright
Run 4, path B (same container, after path A): pin playwright
rm -r /root/.cache/ms-playwright
python3 -m venv /opt/b && . /opt/b/bin/activate
pip install -q "scrapling[fetchers]==0.5.1" "playwright==1.64.0"
scrapling install
python /tmp/s.py
Run 5 (root, fresh minimal container): patchright only, no scrapling install
python3 -m venv /opt/c && . /opt/c/bin/activate
pip install -q "scrapling[fetchers]==0.5.1"
python -m patchright install --with-deps chromium
python /tmp/s.py
python -c "from scrapling.fetchers import Fetcher; r=Fetcher.get('https://example.com'); print('status', r.status, r.css('title::text').get())"
The StealthyFetcher test (/tmp/s.py in runs 3 to 6)
from scrapling.fetchers import StealthyFetcher
r = StealthyFetcher.fetch('https://example.com', headless=True)
print('status', r.status, r.css('h1::text').get())
Run 6 (as root): apt simulation, why run 1 had libatomic1
apt-get install -s -y python3 python3-venv ca-certificates | grep -cE '^Inst libatomic'   # printed 0
apt-get install -s -y python3 python3-venv python3-pip ca-certificates tcpdump | grep -E '^Inst libatomic'
Run 6 (user dev with passwordless sudo): patchright --with-deps without a sudo prefix
useradd -m dev && echo 'dev ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/dev   # as root
# as dev:
python3 -m venv ~/.venv && . ~/.venv/bin/activate
pip install -q "scrapling[fetchers]==0.5.1"
python -m patchright install --with-deps chromium   # no sudo prefix
ls ~/.cache/ms-playwright/
python /tmp/s.py

We keep the raw logs on file. See how we run install audits for the full checklist.

HEADLINE ERROR · VERIFIED FIX

Fix: Executable doesn't exist at ~/.cache/ms-playwright/chromium-1248 after scrapling install

This is the error most people will hit with Scrapling 0.5.1. You follow the README (pip install "scrapling[fetchers]", then scrapling install), scrapling install exits 0, and the first StealthyFetcher call still fails because the browser it wants is not there.

Error text (verbatim, from our log)
patchright._impl._errors.Error: BrowserType.launch_persistent_context: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated.       ║
║ Please run the following command to download new browsers: ║
║                                                            ║
║     patchright install                                     ║
║                                                            ║
║ <3 Patchright Team                                         ║
╚════════════════════════════════════════════════════════════╝

StealthyFetcher.fetch('https://example.com') as root after pip install "scrapling[fetchers]==0.5.1" and a successful scrapling install (exit 0): run 1, and run 4 path A. Exit 1. Run 1 got the same error before scrapling install, and run 3 got it after a scrapling install that had failed. Verified: we reproduced it and the fix.

Cause. scrapling install runs python -m playwright install chromium. With the versions pip resolved on 2026-11-13 (playwright 1.65.1, patchright 1.64.4), Playwright downloaded chromium-1254, but Scrapling 0.5 launches the browser through Patchright, and patchright 1.64.4 looks for chromium-1248. scrapling install writes a marker file, so running it again prints The dependencies are already installed and changes nothing.

Fix. Smallest path we verified (run 5, fresh container, no scrapling install at all): python -m patchright install --with-deps chromium as root (containers), then StealthyFetcher returned status 200. As a normal user with sudo rights, run it inside the activated venv without sudo (run 6, passwordless sudo): patchright printed Switching to root user to install dependencies..., the browser landed in your own ~/.cache/ms-playwright and StealthyFetcher returned status 200 Example Domain. Don't prefix sudo, or the browser goes to root's cache. If you already ran scrapling install: python -m patchright install chromium adds chromium-1248 and StealthyFetcher returned status 200 (run 4 path A; the cache grew to 1.4G with both revisions). Or pin Playwright to the Patchright line before scrapling install: pip install "scrapling[fetchers]==0.5.1" "playwright==1.64.0" gave chromium-1248 only and status 200 (run 4 path B). Caveat for the pin: path B ran in the same container right after path A, so libatomic1 and the apt browser dependencies were already installed; we did not test the pin on a fresh minimal image.

Why: two packages, two Chromium revisions

  • scrapling install runs Playwright's installer (python -m playwright install chromium, upstream cli.py).
  • Scrapling 0.5 no longer uses Playwright to drive the browser. Upstream docs/migrating-to-v0.5.md: "The plain Playwright browser backend has been removed. All browser fetching now uses the Patchright-based stealthy backend."
  • pyproject.toml only sets lower bounds (playwright>=1.62.0, patchright>=1.62.1). On 2026-11-13 pip resolved playwright 1.65.1 and patchright 1.64.4.
  • playwright 1.65.1 downloaded chromium-1254, chromium_headless_shell-1254 and ffmpeg-1013. patchright 1.64.4 expects chromium-1248, per its own dry run below.
  • This is true for installs resolved on 2026-11-13 and may change as playwright and patchright publish new versions. Our interpretation: it is dependency drift from the lower-bound pins, which could disappear when Patchright catches up with Playwright.
$ python -m patchright install --dry-run chromium # run 3, first lines, verbatim
Chrome for Testing 156.0.8078.4 (playwright chromium v1248)
  Install location:    /root/.cache/ms-playwright/chromium-1248
  Download url:        https://cdn.playwright.dev/builds/cft/156.0.8078.4/linux64/chrome-linux64.zip

Fix B, the smallest path we verified: Patchright's installer, with system libraries

Run 5 was a fresh minimal container. We never ran scrapling install: only pip, then Patchright's own installer as root. It downloaded exactly the revision StealthyFetcher needs and installed the system libraries in the same step.

Commands (run 5 as root; run 6 as a normal user with passwordless sudo, same commands, no sudo prefix)
pip install "scrapling[fetchers]==0.5.1"
python -m patchright install --with-deps chromium   # no sudo prefix, also as a normal user
python /tmp/s.py   # the StealthyFetcher test
Run 5 output, verbatim lines
pip exit 0
patchright --with-deps exit 0
chromium-1248
chromium_headless_shell-1248
ffmpeg-1013
stealthy exit 0
status 200 None

As a normal user with sudo rights, run the same command inside the activated venv without a sudo prefix (run 6, passwordless sudo): patchright printed Switching to root user to install dependencies..., escalated for the apt step itself, put the browser in your own ~/.cache/ms-playwright, and StealthyFetcher returned status 200 Example Domain. Do not prefix sudo: the browser would go to root's cache, and plain sudo python is the system interpreter, which has no patchright. We only tested passwordless sudo. Root in containers is run 5.

Run 6 output (user dev, no sudo prefix), verbatim lines
pip exit 0
patchright --with-deps (no sudo prefix) exit 0
Switching to root user to install dependencies...
chromium-1248
chromium_headless_shell-1248
ffmpeg-1013
stealthy exit 0
status 200 Example Domain

Fix A: you already ran scrapling install

Keep what scrapling install did and add Patchright's revision. In run 4 (minimal image, libatomic1 installed first, see the next fix) scrapling install exited 0, StealthyFetcher failed, then python -m patchright install chromium fixed it. Both revisions stay in the cache, 1.4G in total.

Run 4 path A output, verbatim lines
scrapling install exit 0
chromium-1254
chromium_headless_shell-1254
ffmpeg-1013
stealthy before patchright install exit 1
patchright._impl._errors.Error: BrowserType.launch_persistent_context: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome
patchright install exit 0
chromium-1248
chromium-1254
chromium_headless_shell-1248
chromium_headless_shell-1254
ffmpeg-1013
stealthy exit 0
status 200 None
1.4G	/root/.cache/ms-playwright

Fix C: pin Playwright to the Patchright line

pip install "scrapling[fetchers]==0.5.1" "playwright==1.64.0" resolved patchright 1.64.4 and playwright 1.64.0. scrapling install then downloaded chromium-1248 only, and StealthyFetcher returned status 200.

Run 4 path B output, verbatim lines
pip exit 0
patchright                   1.64.4
playwright                   1.64.0
scrapling install exit 0
chromium-1248
chromium_headless_shell-1248
ffmpeg-1013
stealthy exit 0
status 200 None

NOT TESTED

Caveat: the pin ran after the system packages were already installed

Path B ran in the same container right after path A, so libatomic1 and the apt browser dependencies were already installed. Whether playwright 1.64.0 also needs libatomic1 on a fresh minimal image was not tested. The pin also stops matching once a newer patchright expects a different revision.

NOT TESTED

scrapling install --force did not fix it in our runs

In run 3 we ran scrapling install --force in a separate fresh venv. It exited 1 there because of the libatomic problem below, and StealthyFetcher still reported Executable doesn't exist ... chromium-1248. Whether --force alone ever fixes the mismatch on a fully provisioned machine was not tested. We found no upstream issue matching chromium-1248, Executable doesn't exist or patchright install (GitHub search, 2026-11-13), and the upstream README and docs do not mention patchright install.

INSTALL

What pip install installs

Scrapling is a Python library on PyPI (0.5.1, requires Python >=3.10, BSD-3-Clause). pip installs wheels; there is no postinstall step like npm's. pip does not download a browser: in run 3, ~/.cache/ms-playwright did not exist after pip install (and a failed scrapling install). We did not trace pip's own network connections.

Core only: pip install scrapling==0.5.1

Run 1, venv, exit 0, last line verbatim
Successfully installed cssselect-1.6.0 frostwork-0.2.2 lxml-6.1.3 orjson-3.13.0 scrapling-0.5.1 tld-0.13.2 typing_extensions-4.16.0 w3lib-2.6.0

That is the parser only. Importing a fetcher or running the CLI fails until you add an extra (see the curl_cffi error below).

With fetchers: pip install "scrapling[fetchers]==0.5.1"

Run 1, exit 0, last lines verbatim
Installing collected packages: pyee, pycparser, protego, msgspec, idna, greenlet, click, certifi, apify-fingerprint-datapoints, playwright, patchright, cffi, browserforge, anyio, curl_cffi

Successfully installed anyio-4.16.0 apify-fingerprint-datapoints-0.16.0 browserforge-1.2.4 certifi-2026.10.23 cffi-2.1.1 click-8.5.1 curl_cffi-0.17.0 greenlet-3.5.6 idna-3.20 msgspec-0.22.0 patchright-1.64.4 playwright-1.65.1 protego-0.7.0 pycparser-3.12 pyee-14.0.0
pip list, filtered (run 1, verbatim)
browserforge                 1.2.4
curl_cffi                    0.17.0
patchright                   1.64.4
playwright                   1.65.1
scrapling                    0.5.1
  • The venv was 387M after the fetchers extra, before any browser download (du -sh /opt/venv).
  • Both playwright (1.65.1) and patchright (1.64.4) are installed, each with its own driver. Which one downloads your browser decides whether StealthyFetcher works (see the fix above).
  • curl_cffi (0.17.0) is what the HTTP Fetcher imports: without it, from scrapling.fetchers import Fetcher fails (see below).
  • Other extras exist upstream (ai for the MCP server, rag, shell, all). We only installed core and fetchers.
BROWSER DOWNLOAD

What scrapling install does

scrapling install is a CLI command, not part of pip. We read install() in upstream scrapling/cli.py at commit bb223f2. Unless the marker file exists (or you pass --force), it runs four steps in order:

  1. python -m playwright install chromium: downloads Playwright's Chromium into ~/.cache/ms-playwright.
  2. python -m playwright install-deps chromium: installs the browser's system libraries with apt, so it needs root or sudo.
  3. tld.utils.update_tld_names(fail_silently=True): refreshes the tld package's public suffix list inside the venv.
  4. Touches site-packages/scrapling/.scrapling_dependencies_installed, an empty marker file.

Each step runs through subprocess check_output, so the subprocess's own output is captured and not shown. What you see is a line per step (cli.py prints Installing plus a help text that also starts with Installing):

$ scrapling install # run 1, root, exit 0, progress lines filtered out, verbatim
debconf: delaying package configuration, since apt-utils is not installed
Installing Installing browsers...
Installing Installing browsers dependencies...
du -sh /root/.cache/ms-playwright/* # run 1, verbatim
413M	/root/.cache/ms-playwright/chromium-1254
283M	/root/.cache/ms-playwright/chromium_headless_shell-1254
5.1M	/root/.cache/ms-playwright/ffmpeg-1013
Files written by scrapling install: find / -xdev -newer marker, counted by path prefix (run 1, verbatim excerpt; fontconfig cache lines omitted)
    303 /root/.cache/ms-playwright/chromium-1254/...
    289 /root/.cache/ms-playwright/chromium_headless_shell-1254/...
    100 /var/lib/dpkg/...
      6 /usr/share/fonts/...
      4 /root/.cache/ms-playwright/ffmpeg-1013/...
      1 /var/lib/xfonts/excluded-aliases
      1 /var/lib/apt/extended_states
      1 /var/cache/ldconfig/aux-cache
      1 /root/.cache/ms-playwright/.links/...
      1 /opt/venv/lib/python3.12/site-packages/tld/res/effective_tld_names_public_only.dat.txt
      1 /opt/venv/lib/python3.12/site-packages/tld/res/effective_tld_names.dat.txt
      1 /opt/venv/lib/python3.12/site-packages/scrapling/.scrapling_dependencies_installed
      1 /etc/ld.so.cache
  • About 700M of browsers: chromium-1254 (413M), chromium_headless_shell-1254 (283M) and ffmpeg-1013 (5.1M). That is the revision StealthyFetcher could not use.
  • System changes from install-deps: about 100 files under /var/lib/dpkg, 6 files under /usr/share/fonts, fontconfig caches and /etc/ld.so.cache. We do not have the package list, because scrapling captures the subprocess output.
  • Inside the venv: the two tld public suffix files and the 0-byte marker file.
  • Run it again and it prints The dependencies are already installed and does nothing, even if the browser it installed is the wrong one. Use --force to rerun, or the Patchright commands above.
  • If any step fails (as with libatomic below), the marker file is not written.
COMMON ERROR · VERIFIED FIX

Fix: libatomic.so.1 missing, scrapling install returned non-zero exit status 127

On a minimal Ubuntu 24.04 image (a slim container, a CI runner image), scrapling install fails at its first step with a Python traceback. The real reason is hidden, because scrapling captures the subprocess output.

Error text (verbatim, from our log)
subprocess.CalledProcessError: Command '['/home/dev/venv/bin/python3', '-m', 'playwright', 'install', 'chromium']' returned non-zero exit status 127.

/home/dev/venv/lib/python3.12/site-packages/playwright/driver/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Minimal ubuntu:24.04 with only python3, python3-venv and ca-certificates. First line: the end of the scrapling install traceback (run 2 and run 3 as user dev), exit 1. In run 3, scrapling install as root on the same minimal image also exited 1, and python -m playwright install --dry-run chromium printed the same libatomic.so.1 message under /opt/venv. Second line: what python -m playwright install chromium prints when you run it yourself (run 3, as dev), exit 127. Verified: we reproduced it and the fix.

Cause. Playwright 1.65.1's bundled Node driver links against libatomic.so.1, which a minimal Ubuntu 24.04 image does not have. scrapling install captures the subprocess output, so it only shows the CalledProcessError, not the libatomic message. The marker file is not written and ~/.cache/ms-playwright is not created. Our run 1 did not hit this because installing python3-pip pulls in libatomic1 (apt simulation in run 6: run 1's package set printed Inst libatomic1 (14.2.0-4ubuntu2~24.04.1 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]); the minimal set installs no libatomic package). patchright 1.64.4's driver did not hit it: patchright install exited 0 on the same minimal images (runs 3 and 5).

Fix. sudo apt-get install -y libatomic1 (we ran apt-get install -y -qq libatomic1 as root in run 4), then scrapling install exited 0. Or skip Playwright's installer and use python -m patchright install --with-deps chromium, which did not need libatomic1 in run 5.

End of the scrapling install traceback (run 2, user dev, verbatim)
  File "/home/dev/venv/lib/python3.12/site-packages/scrapling/cli.py", line 122, in install
    __Execute(
  File "/home/dev/venv/lib/python3.12/site-packages/scrapling/cli.py", line 27, in __Execute
    _ = check_output(cmd, shell=False)  # nosec B603
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/dev/venv/bin/python3', '-m', 'playwright', 'install', 'chromium']' returned non-zero exit status 127.
Fix (run 4, as root; a normal user runs the apt-get line with sudo)
sudo apt-get install -y libatomic1
scrapling install   # exit 0 in run 4 (as root); its install-deps step needs root, and Playwright's installer asks for sudo when run as a normal user (upstream behaviour, not tested with playwright)
python -m patchright install chromium   # still needed for StealthyFetcher on 2026-11-13

If you have not run scrapling install yet, python -m patchright install --with-deps chromium avoids Playwright's driver entirely; it did not need libatomic1 in run 5.

COMMON ERROR · VERIFIED FIX

Fix: libglib-2.0.so.0 cannot open shared object file / TargetClosedError

You downloaded the right browser, but Chromium cannot start because the system libraries are missing. This is what a normal user without sudo gets: the browser download works without root, the libraries do not.

Error text (verbatim, from our log)
patchright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed
[pid=2146][err] /home/dev/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

Run 3, user dev without sudo, after python -m patchright install chromium (exit 0, browser in ~/.cache/ms-playwright), StealthyFetcher test exit 1. Run 3 as root also ended in the same TargetClosedError when scrapling install had failed before its install-deps step. Verified: we reproduced it and the fix.

Cause. The browser download does not include the system libraries Chromium links against, and a minimal image has no libglib-2.0.so.0. Installing them is an apt step that needs root. scrapling install's own install-deps step uses Playwright's driver, so on a minimal image it hits the libatomic problem first (run 2's root install-deps attempt also exited 127).

Fix. Run python -m patchright install --with-deps chromium inside the activated venv: as root in run 5, and as a normal user with passwordless sudo and no sudo prefix in run 6 (patchright escalated for the apt step itself); both then returned status 200. Libraries only (not executed): sudo "$VIRTUAL_ENV/bin/python" -m patchright install-deps chromium. Never plain sudo python, which is the system interpreter without patchright.

Fix (system libraries need root once)
# Browser + libraries in one step, inside the activated venv, no sudo prefix
# (run 5 as root; run 6 as a normal user: patchright asks sudo for the apt step itself)
python -m patchright install --with-deps chromium

# Libraries only (not executed): the venv's python under sudo, never plain sudo python
sudo "$VIRTUAL_ENV/bin/python" -m patchright install-deps chromium

What we executed: --with-deps as root in run 5 and as a normal user with passwordless sudo, without a sudo prefix, in run 6 (status 200 both times). We did not run install-deps on its own. In runs 2 and 3, user dev had no sudo, so in that setup only root could install the libraries.

COMMON ERROR · VERIFIED

Fix: ImportError: cannot import name 'DynamicFetcher' from 'scrapling.fetchers'

Tutorials and agent-written code from before 0.5 use DynamicFetcher. On 0.5.1 the import fails, with or without scrapling install.

Error text (verbatim, from our log)
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ImportError: cannot import name 'DynamicFetcher' from 'scrapling.fetchers' (/opt/venv/lib/python3.12/site-packages/scrapling/fetchers/__init__.py)

Any 0.4-style code on 0.5.1: from scrapling.fetchers import DynamicFetcher (runs 1 and 2, before and after scrapling install), exit 1. Verified: we reproduced it and the fix.

Cause. Scrapling 0.5 removed the plain Playwright backend. Upstream docs/migrating-to-v0.5.md: "The plain Playwright browser backend has been removed. All browser fetching now uses the Patchright-based stealthy backend."

Fix. Use StealthyFetcher instead of DynamicFetcher (StealthySession for DynamicSession, AsyncStealthySession for AsyncDynamicSession), per the upstream migration guide. In callbacks, change playwright.sync_api to patchright.sync_api (and playwright.async_api to patchright.async_api). StealthyFetcher.fetch('https://example.com', headless=True) returned status 200 in runs 4 and 5 once chromium-1248 was installed.

Before (0.4) and after (0.5), per upstream docs/migrating-to-v0.5.md
# before
from scrapling.fetchers import DynamicFetcher
page = DynamicFetcher.fetch("https://example.com", headless=True)

# after
from scrapling.fetchers import StealthyFetcher
page = StealthyFetcher.fetch("https://example.com", headless=True)

# DynamicSession -> StealthySession, AsyncDynamicSession -> AsyncStealthySession
# playwright.sync_api -> patchright.sync_api in callbacks

We ran the StealthyFetcher form (status 200 in runs 4 and 5). We did not test sessions, spiders or callbacks.

COMMON ERRORS · VERIFIED

Other install errors we hit: No module named 'curl_cffi', externally-managed-environment

Error text (verbatim, from our log)
  File "/opt/venv/lib/python3.12/site-packages/scrapling/engines/_browsers/_types.py", line 3, in <module>
    from curl_cffi.requests import (
ModuleNotFoundError: No module named 'curl_cffi'

ModuleNotFoundError: You need to install scrapling with any of the extras to enable Shell commands. See: https://scrapling.readthedocs.io/en/latest/#installation

Run 1, core-only pip install scrapling==0.5.1 in a venv. First: python -c "from scrapling.fetchers import Fetcher", exit 1. Second: scrapling --help, exit 1. Verified: we reproduced it and the fix.

Cause. The core package is only the parser. The README says importing from scrapling.fetchers "will raise ModuleNotFoundError with this installation alone", and the CLI needs click from the extras. (Upstream issue #343, closed, is the same report; we did not reproduce anything beyond our own run.)

Fix. pip install "scrapling[fetchers]". In run 1 that added curl_cffi, playwright, patchright and the rest, and Fetcher.get('https://example.com') then returned status 200.

Error text (verbatim, from our log)
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Run 1, Ubuntu 24.04's system pip as root: pip install scrapling==0.5.1, exit 1 with the PEP 668 externally-managed-environment error (quoted: the last 13 of the 15 lines our log kept). Verified: we reproduced it and the fix.

Cause. Ubuntu 24.04 marks its system Python as externally managed, so pip refuses to install into it.

Fix. Use a virtual environment: python3 -m venv .venv, then .venv/bin/pip install (what we did in every other run). pipx or uv also manage their own environments; we did not test them. Don't use --break-system-packages: it installs into the Python your OS depends on.

UPSTREAM REPORTS · NOT REPRODUCED

Install problems reported upstream (we did not reproduce these)

This one is an upstream report we did not reproduce. We list it so you can recognise it; the cause and the reply are the reporter's and maintainer's, not ours.

Upstream issue title
scrapling install runs the apt-based install-deps step on Arch Linux

Upstream issue #439 (closed), Arch Linux. We did not reproduce it: we only tested Ubuntu 24.04. Upstream report: we did not reproduce it.

Cause. Reported upstream: scrapling install always runs playwright install-deps, which is apt-based. The maintainer replied: "This seems like a Playwright issue, not ours".

Fix. Follow issue #439. On non-apt distributions, install Chromium's system libraries with your package manager and download the browser without the deps step; we did not test this.

github.com/D4Vinci/Scrapling/issues/439

NO BROWSER NEEDED

The HTTP Fetcher works without scrapling install

If you only need HTTP requests, skip the browser download entirely. The upstream README says "HTTP requests do not need a browser installation." In our runs, Fetcher.get('https://example.com') returned status 200 straight after pip install "scrapling[fetchers]" (run 1, before scrapling install; run 5, which never ran it).

Run 5, HTTP Fetcher, verbatim
[2026-11-13 13:45:04] INFO: Fetched (200) <GET https://example.com/> (referer: https://www.google.com/)
status 200 Example Domain

We observed that the log line reports referer: https://www.google.com/ although our script set no referer: in our runs the HTTP fetcher sent a Google referer by default, as part of its browser-impersonation defaults. That is an observation from the log line, not a review of the code.

NETWORK

What Scrapling contacts during install

During scrapling install in run 1, tcpdump on udp port 53 inside the container saw lookups for six hostnames (sorted, unique):

DNS names queried during scrapling install (run 1, verbatim)
archive.ubuntu.com.
cdn.playwright.dev.
playwright.download.prss.microsoft.com.
publicsuffix.org.
security.ubuntu.com.
storage.googleapis.com.

INTERPRETATION

Our interpretation, not proof

archive.ubuntu.com and security.ubuntu.com are the apt mirrors used by install-deps. cdn.playwright.dev and playwright.download.prss.microsoft.com are the Playwright browser CDN and its fallback (the patchright dry run lists the same hosts as download and fallback URLs). publicsuffix.org is the public suffix list refresh (update_tld_names). We cannot tell from our logs which step looked up storage.googleapis.com. We did not attribute connections to processes.

We did not capture DNS during fetches or at runtime, the payloads (TLS), or pip's own connections. So this section says what scrapling install looks up, not what Scrapling sends while it scrapes.

If outbound traffic matters to you, run the browser install in a container or behind an egress policy, and remember that a stealth scraper's whole job is to make requests to the sites you give it.

RUNTIME · UPSTREAM SOURCE

Runtime notes: the MCP server and open reports

Everything in this section comes from the upstream source and issue tracker at commit bb223f2. We did not install scrapling[ai] and did not run the MCP server; these are not executed by us.

  • scrapling mcp --http serves streamable HTTP on --host 127.0.0.1 and --port 8000 by default (cli.py). The --host help says: "Pass '0.0.0.0' to accept connections from the network". The upstream Dockerfile EXPOSEs 8000.
  • --auth-token makes clients send Authorization: Bearer <token>. Its help text says setting the SCRAPLING_MCP_AUTH_TOKEN environment variable instead "keeps it out of the process list".
  • --no-auth serves HTTP without authentication ("not recommended"); per its help text, without it --http refuses to start unless a token is given.
  • --allowed-host "Enable DNS-rebinding protection and accept requests for this host only", and the help says it is "Recommended whenever the server listens on a public address".
  • Upstream issue #558 (open, not reproduced by us): "Response.follow() inherits credentials when following links to a different origin". If you pass cookies or auth headers, check how you follow links.
  • Upstream issue #514 (closed, not reproduced by us) discussed verifying HTTPS certificates by default in stealth browser contexts. We did not check the current default.

UPSTREAM REPORT · NOT VERIFIED BY US

Responsible use

Scrapling is built to fetch sites that resist automation. Whether a target site's terms, robots rules or local law allow it is your responsibility, not the library's.

HARDENING

How to limit the risk

A checklist built from our runs and the upstream CLI help. Items about the MCP server are upstream options we did not test.

  1. Install into a virtual environment (python3 -m venv), never with --break-system-packages.
  2. Pin what you tested: scrapling[fetchers]==0.5.1, and if you rely on scrapling install, a playwright version whose Chromium revision matches patchright's.
  3. Run browser installs (scrapling install, patchright install --with-deps) in a container or VM if you don't want apt changes and 700M or more of browsers on your workstation. They need root for the apt part.
  4. If you only need HTTP requests, don't install a browser at all: the HTTP Fetcher worked without one.
  5. Don't expose the MCP server on 0.0.0.0 without --auth-token (or SCRAPLING_MCP_AUTH_TOKEN) and --allowed-host. Never use --no-auth on a network address.
  6. ~/.cache/ms-playwright is shared by every Playwright and Patchright install for your user. Installing or deleting browsers there affects other projects too.
CLEANUP

Uninstall: pip uninstall leaves the browsers and dependencies

  • pip uninstall -y scrapling exited 0 (run 1) but left playwright 1.65.1, patchright 1.64.4, curl_cffi and browserforge in the venv. pip does not remove dependencies.
  • ~/.cache/ms-playwright stayed at 701M (chromium-1254, chromium_headless_shell-1254, ffmpeg-1013). With fix A it would hold both revisions, 1.4G in run 4.
  • The apt packages from install-deps also remain. We did not remove them.
  • Clean removal: delete the venv (rm -r .venv) to drop every Python package. For the browsers, python -m playwright uninstall --all or rm -r ~/.cache/ms-playwright. We did not run these cache commands (not executed), and the cache is shared: only remove it if no other Playwright or Patchright project uses it.
Run 1 uninstall, verbatim (exit code, cache contents, cache size, packages left)
exit 0
/root/.cache/ms-playwright/chromium-1254
/root/.cache/ms-playwright/chromium_headless_shell-1254
/root/.cache/ms-playwright/ffmpeg-1013
701M	/root/.cache/ms-playwright
browserforge                 1.2.4
curl_cffi                    0.17.0
patchright                   1.64.4
playwright                   1.65.1
VERIFIED PATH

The shortest sequence that gave a working StealthyFetcher in a fresh minimal Ubuntu 24.04 container (run 5). It skips scrapling install, so it also avoids the libatomic problem and the second Chromium revision.

Run 5 sequence (root in Docker); run 6 ran the same steps as a normal user
# Ubuntu: sudo apt install python3-venv first
python3 -m venv .venv
. .venv/bin/activate
pip install "scrapling[fetchers]==0.5.1"

# Browser + system libraries for StealthyFetcher (Patchright's chromium-1248).
# No sudo prefix: as root in a container (run 5), or as a normal user with sudo
# rights (run 6): patchright prints "Switching to root user to install
# dependencies..." and uses sudo for the apt step; the browser stays in your
# ~/.cache/ms-playwright. Prefixing sudo would put it in root's cache.
python -m patchright install --with-deps chromium

# Test (run 5 printed: status 200 None, exit 0)
python - <<'PY'
from scrapling.fetchers import StealthyFetcher
r = StealthyFetcher.fetch('https://example.com', headless=True)
print('status', r.status, r.css('h1::text').get())
PY

As a normal user (run 6, user dev with passwordless sudo): the same steps, without sudo in front of the patchright command. It printed Switching to root user to install dependencies..., the browser landed in the user's own ~/.cache/ms-playwright and StealthyFetcher returned status 200 Example Domain. Do not prefix sudo: the browser would go to root's cache, and plain sudo python is the system interpreter without patchright. A sudo that prompts for a password was not tested.

LIMITS

Not tested

This audit covers six pip installs of scrapling 0.5.1 on Ubuntu 24.04 (x86_64) in Docker, with package versions as pip resolved them on 2026-11-13. We did not test:

  • macOS, Windows and WSL.
  • Arch, Fedora and other non-apt distributions, including the Arch install-deps report (#439).
  • The official python:3.12-slim image and other base images.
  • uv and pipx installs.
  • scrapling[ai] and the MCP server at runtime, including --auth-token, --allowed-host and --no-auth.
  • scrapling[all], scrapling[rag], scrapling[shell] and the interactive shell.
  • Spiders, sessions, callbacks, Cloudflare solving, headful mode and proxies.
  • The upstream Docker image (pyd4vinci/scrapling, ghcr.io/d4vinci/scrapling).
  • Network traffic during scraping (we only captured DNS during scrapling install), payloads, and pip's own connections.
  • playwright 1.64.0 (fix C) on a fresh minimal image without libatomic1.
  • Whether scrapling install --force alone ever fixes the revision mismatch on a fully provisioned machine.
  • patchright install-deps on its own, and install steps run with a sudo prefix by a normal user.
  • A password-prompting sudo: run 6 used passwordless sudo (NOPASSWD), so no password prompt was exercised.
  • Removing the browser cache (python -m playwright uninstall --all or rm -r ~/.cache/ms-playwright) and the apt packages.
  • The behaviours in upstream issues #558 (credentials on cross-origin follow) and #514 (HTTPS certificate verification).
SOURCES

Sources

FAQ

Frequently asked questions

Is Scrapling safe to install?

In our Ubuntu 24.04 containers, pip install "scrapling[fetchers]==0.5.1" installed wheels from PyPI (387M venv) and ran no install hooks; we did not trace pip's own connections. We rate the install risk medium because of the browser step: scrapling install downloads about 700M of Chromium into ~/.cache/ms-playwright and runs playwright install-deps, which installs system packages with apt as root. At runtime it is a stealth scraper, and its optional MCP server should not be exposed on 0.0.0.0 without --auth-token and --allowed-host (upstream options we did not test).

Why does Scrapling say Executable doesn't exist at chromium-1248 after scrapling install?

Because scrapling install runs Playwright's installer, while Scrapling 0.5 launches the browser through Patchright. With the versions pip resolved on 2026-11-13 (playwright 1.65.1, patchright 1.64.4), Playwright downloaded chromium-1254 and Patchright looked for chromium-1248, so StealthyFetcher failed even though scrapling install exited 0. The smallest fix we verified is python -m patchright install --with-deps chromium (status 200 afterwards): as root in a container (run 5), or as a normal user inside the activated venv without sudo (run 6, passwordless sudo), where patchright printed Switching to root user to install dependencies... and kept the browser in the user's own cache. Prefixing sudo would put the browser in root's cache. If you already ran scrapling install, python -m patchright install chromium adds the missing revision. This may change as the two packages update.

How do I fix libatomic.so.1 when running scrapling install?

Install it: sudo apt-get install -y libatomic1. On a minimal Ubuntu 24.04 image, Playwright 1.65.1's bundled Node driver needs libatomic.so.1, so scrapling install failed with CalledProcessError ... returned non-zero exit status 127 (scrapling hides the libatomic message; running python -m playwright install chromium yourself shows it). After apt-get install libatomic1, scrapling install exited 0 in our run. On Ubuntu 24.04, installing python3-pip pulled libatomic1 in (apt simulation, run 6: Inst libatomic1 (14.2.0-4ubuntu2~24.04.1 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])), which is why our first run did not hit this. Patchright's installer did not need it.

What replaced DynamicFetcher in Scrapling 0.5?

StealthyFetcher. Scrapling 0.5 removed the plain Playwright backend, so from scrapling.fetchers import DynamicFetcher raises ImportError: cannot import name 'DynamicFetcher'. Per the upstream migration guide, use StealthyFetcher, StealthySession instead of DynamicSession, AsyncStealthySession instead of AsyncDynamicSession, and patchright.sync_api instead of playwright.sync_api in callbacks. StealthyFetcher.fetch('https://example.com', headless=True) returned status 200 in our runs once chromium-1248 was installed.

Do I need scrapling install for the HTTP Fetcher?

No. Fetcher.get('https://example.com') returned status 200 right after pip install "scrapling[fetchers]", without scrapling install or any browser download, and the upstream README says HTTP requests do not need a browser installation. You do need the fetchers extra: with the core package alone, the import fails with No module named 'curl_cffi'.

How much disk space does Scrapling use?

In our runs: 387M for the venv with scrapling[fetchers]==0.5.1, plus about 700M in ~/.cache/ms-playwright after scrapling install (chromium-1254 413M, chromium_headless_shell-1254 283M, ffmpeg-1013 5.1M; 701M total). Patchright's set was chromium-1248 403M, chromium_headless_shell-1248 273M and ffmpeg-1013 5.1M (run 3), and with both revisions the cache was 1.4G (run 4). install-deps also adds apt packages.

Does pip uninstall scrapling remove the browsers?

No. pip uninstall -y scrapling left playwright, patchright, curl_cffi and browserforge in the venv and the 701M browser cache in ~/.cache/ms-playwright, and the apt packages stay too. Delete the venv to remove the Python packages. For the browsers, python -m playwright uninstall --all or deleting ~/.cache/ms-playwright should work, but we did not run those, and the cache is shared with other Playwright projects.