Docs/Reference

Selector recovery

Understand the scope and limits of heuristic CSS selector recovery.

Download .md
Developers2 min read3 sections
Source reference · Match your SDK version. Availability and known issues
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)
python3 lines · copy-ready

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.