github D4Vinci/Scrapling v0.5.2
Release v0.5.2

55 minutes ago

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 data or content, as well as the files and multipart options. Pass the encoded bytes in content with the matching Content-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_PATH only. Set the environment variable to its absolute path. This replaces the Python and MCP argument executable_path and 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(), and LinkExtractor resolve 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() or response.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.
  • LinkExtractor skips file:// 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-After dates 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 install now downloads the Chromium build that Patchright expects, by @karasakalmt in #585. If your browser executable is missing after upgrading, run scrapling install --force.
  • Fixed OpenClaw skipping the Scrapling skill on machines that use uv without pip or pip3, by @stealthybear in #586.
  • Updated all browsers and fingerprints. Run scrapling install --force after 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


Big shoutout to our Platinum Sponsors

Don't miss a new Scrapling release

NewReleases is sending notifications on new releases.