github D4Vinci/Scrapling v0.5.3
Release v0.5.3

41 minutes ago

A maintenance update with safer browser state files, optional IP checks, Python 3.14 support, and fixes for parsing and crawling 🚀

🚀 New Stuff and quality-of-life changes

  • Moved the ad-blocking and routing logic into a new library called Playwright-Blocker v1.1 and made the following adjustments there:

    • Preserve existing route handlers for allowed requests by using fallback() instead of continue() so browsing isn't slowed as well.
    • Fixed opening sites on the built-in ad list when ad blocking is enabled. You can now visit these sites directly. Domains you explicitly block with blocked_domains remain blocked.
    • Added optional checks for non-public IPs in request URLs. Set SCRAPLING_INTERNAL_REQUESTS=0 before importing fetchers or starting the CLI. Checks are off by default in Python and the CLI; MCP always enables them. Checks inspect IPs written in URLs, with no DNS lookup, and browser coverage has limits. (Check the docs)
    export SCRAPLING_INTERNAL_REQUESTS=0
    scrapling extract get "https://example.com" page.html
  • Browser state files are now restricted to one folder. Pass a .json file name, such as save_state("login.json"), when saving or loading state in Python or MCP. Move existing files into .scrapling_sessions/, or set SCRAPLING_STATE_DIR to their folder before importing fetchers or starting MCP. (Check the docs)

  • Declared official Python 3.14 support, by @therealityreport in #593.

🐛 Bug Fixes

  • Fixed the wrong parent for text after an inline element. .parent now returns the element that contains the text, by @Zacharon in #591. (Fixes #590)
  • Fixed skipped sitemaps with bare & characters in URLs or whitespace before the XML declaration, by @leomattos7 in #571.

🙏 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.