Docs/Understand Crawlingo

The basic concepts

A shared vocabulary for planning a dataset, reading the configuration and understanding the result.

Download .md
Everyone4 min read7 sections
Source reference · Match your SDK version. Availability and known issues
In this guide

Pages, rows and fields

A page is one HTTP response. A record is one structured item extracted from it. A field is one named value inside that item. One article page might produce one record; a catalog page might produce many.

A row selector identifies the repeated containers that belong to individual records. Field selectors operate within those containers. Without a row selector, the entire page is treated as one record. This distinction prevents a missing field in one product from borrowing a value from the next product.

TermProduct catalog example
Pagecatalog.html
Row containerarticle.product
Field nameprice
Field selector.price
Extracted value12.5

Selectors describe where a value lives

A CSS selector is a small rule for finding HTML elements. h1 matches a heading, .price matches elements with the price class, and article.product matches product containers. The extractor can read text or an attribute such as data-sku.

Selectors depend on the actual HTML returned to the engine. What appears after JavaScript runs in your browser may not exist in the original response. The developer should inspect both the source and a sample extraction before choosing a fetch strategy.

A schema defines acceptable records

A schema describes fields and their rules. required rejects a missing value. min_length catches unexpectedly short text. data_type validates a string as an integer, finite float or boolean. A default fills an empty extracted value when that fallback is meaningful.

Rules enforce the checks you choose. They do not prove the real-world accuracy of a value. For example, a price of 999999 is a valid number even if it is wrong for that product. Apply domain-specific checks in your application after extraction.

Deduplication is a choice about identity

A duplicate URL is an input address the job has already processed. A duplicate record is a row whose identity values match an accepted row. They are counted separately.

With dedup_fields empty, all extracted fields define identity. With dedup_fields set to sku, only the SKU defines identity. Metadata such as the source URL is excluded from default record identity. The comparison is exact; it does not detect paraphrases or near-duplicate text.

Checkpoints make work resumable

A checkpoint is a committed boundary in the input and output. The engine writes and flushes a batch of data and errors, then advances its stored progress. If the process stops before that boundary is committed, the unfinished batch is replayed on the next run.

Keep the same input and configuration for resume. A changed URL file, selector or limit defines a different job and needs a fresh directory. Resume is not an instruction to refresh every page or retry all earlier failures.

JSONL, CSV and shards

When combining CSV shards, read each with a CSV parser so its header is interpreted once. Do not concatenate file bytes and treat repeated headers as data. For JSONL, parse each line rather than loading the complete file into memory.

TermMeaning
JSONLOne JSON object per line; useful for processing records incrementally.
CSVA table with a header and delimited values; each shard includes its own header.
ShardOne numbered output file containing part of the dataset.
Error shardA JSONL file listing failed pages and rejected rows.
State directoryThe database containing checkpoints and identity indexes.

Concurrency, rate and memory

Concurrency is how many page operations can be in progress at once. A request rate limit controls how quickly requests may start. They solve different problems: increasing concurrency does not remove source-side limits or make every network connection faster.

Memory includes response bodies, parsed documents, extracted rows, pending deduplication values and the database cache. Bounds on these individual parts make large jobs manageable, but no single setting guarantees a fixed process memory size. Measure representative pages before raising limits.