Selector recovery
Understand the scope and limits of heuristic CSS selector recovery.
In this guide
How it works
The Dataset builder can save a DOM fingerprint when a CSS selector succeeds. If that selector later fails, the matcher scores candidate nodes using the saved fingerprint and returns a candidate above its threshold.
Similarity is not a calibrated probability of correctness. Recovery can select the wrong element, particularly on pages with many similar records. Validate recovered values before using them downstream.
Enable it on a session
Pass the session to the existing Dataset builder. The first successful selection establishes the fingerprint; recovery cannot infer a trustworthy target without that history.
from crawlingo import Session
session = Session().auto_match(True)Bulk job behavior
DatasetJob uses explicit selectors and validation. Auto-match is not applied to its row extraction. Review error shards, update the extraction configuration and start a new job directory when layout changes.