Repository navigation
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 ofcontinue()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_domainsremain blocked. - Added optional checks for non-public IPs in request URLs. Set
SCRAPLING_INTERNAL_REQUESTS=0before 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
- Preserve existing route handlers for allowed requests by using
-
Browser state files are now restricted to one folder. Pass a
.jsonfile name, such assave_state("login.json"), when saving or loading state in Python or MCP. Move existing files into.scrapling_sessions/, or setSCRAPLING_STATE_DIRto 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.
.parentnow 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