Dataset builder
Extract and export a small result, or move to DatasetJob for bulk generation.
Source reference · Match your SDK version. Availability and known issues
In this guide
One page, one result
from crawlingo import Dataset
result = Dataset("https://example.com/").field("title", "h1").build()
result.to_json("page.json")
result.to_csv("page.csv")
result.to_parquet("page.parquet")python6 lines · copy-ready
Structured extraction
Legacy structured extraction collects columns and rejects unequal match counts. For repeated row containers with optional fields, prefer DatasetJob.row_selector; it keeps fields attached to their own record.
Choose an export API
| API | Use | Formats |
|---|---|---|
| DatasetResult | Small collected result | JSON, CSV, Parquet |
| DatasetStream | Rust record producers | CSV, Parquet |
| DatasetJob | Resumable URL-file pipeline | JSONL shards, CSV shards |