Repository navigation
A maintenance update to fix and improve a lot of stuff, with some security patches on top 🚀
Warning
Three breaking changes affect spiders, HTTP uploads, and custom browser paths. Check the migration guide before updating.
⚠️ Breaking Changes
response.follow()starts a fresh request. Pass any per-request headers, cookies, proxy settings, or metadata the next page needs, even on the same site. The session ID, callback, and priority still carry over. Shared session settings and stored cookies still apply. Fixes #558.- Prepare upload bodies before sending them. HTTP fetchers and spider requests now reject streams in
dataorcontent, as well as thefilesandmultipartoptions. Pass the encoded bytes incontentwith the matchingContent-Type. If a saved crawl contains stream bodies, start a fresh crawl. Upload migration guide. - Now you can choose your custom Chromium executable through
SCRAPLING_EXECUTABLE_PATHonly. Set the environment variable to its absolute path. This replaces the Python and MCP argumentexecutable_pathand the CLI flag--executable-path. If you host the MCP server, you now control which executable it launches without the security risk.
🐛 Bug Fixes
- Relative links now respect the page's
<base href>.urljoin(),response.follow(), andLinkExtractorresolve links against the base URL, including when the base itself is relative. Fixes #563. - Fixed saving and relocating elements on fetched pages. You can pass a selected element directly to
response.save()orresponse.relocate(). Fixes #600. - Spiders can tell two POST requests apart when only their raw bodies differ. Duplicate filtering and cache lookups now use the URL, method, and body the HTTP client prepares, including repeated form values.
LinkExtractorskipsfile://links found on web pages. This keeps discovered links from pointing the spider at local files. You can still supply a local feed URL yourself. Thanks to @sirteggun for contributing #542.- Fixed skipped sitemap, XML, and CSV entries when a server labels plain content as gzip. Spiders now check the response bytes before decompressing. Thanks to @yetval in #565.
- AutoThrottle now treats old-style
Retry-Afterdates as UTC, so the machine's time zone no longer changes the retry delay, by @mschoi0411 in #561. - Fixed IPv6 proxy URLs in browser fetchers. Scrapling now keeps the brackets around the IPv6 address, so proxy URLs work with or without a port. Thanks to @HEOJUNFO in #598.
scrapling installnow downloads the Chromium build that Patchright expects, by @karasakalmt in #585. If your browser executable is missing after upgrading, runscrapling install --force.- Fixed OpenClaw skipping the Scrapling skill on machines that use
uvwithoutpiporpip3, by @stealthybear in #586. - Updated all browsers and fingerprints. Run
scrapling install --forceafter updating to refresh them.
Docs
- The Scrapling website now has a blog. In the new article, I explain why I choose Scrapling MCP over Playwright MCP for web scraping and automation, including how I chain browser actions in one call. Visit the blog · Read the article.
- You can now set up Scrapling with one prompt. Paste it into Codex, Claude Code, or any AI agent with shell access. It installs Scrapling with browser support, adds the official Agent Skill, and connects the MCP server. Copy the setup prompt.
🙏 Special thanks to the community for all the continuous testing and feedback