pandas, DuckDB & Parquet
Read completed output incrementally, convert field types, and produce an analytical dataset.
In this guide
Start with committed output
Run the product example first. The snippets below read its output directory from examples/product_dataset. Review report.json before importing records. Use only part-XXXXXXXX.jsonl files: a broad *.jsonl glob also matches error shards. Crawlingo stores validated field values as strings, so define downstream types deliberately.
Read JSONL in pandas batches
Install pandas in a separate analysis environment if needed. Process each chunk before reading the next. Concatenating every chunk recreates an in-memory dataset and loses the benefit of chunked reading. Keep identifiers as strings so leading zeros survive.
python -m pip install pandasQuery and convert with DuckDB
Install DuckDB and run this script from the repository root after the product job completes. The explicit columns preserve field types at import. Casting price creates a typed numeric column. This Parquet file is a downstream artifact; the dataset job itself still checkpoints JSONL or CSV.
python -m pip install duckdbDatabases, object storage and search
Do not upload a live state database as a consistent recovery snapshot. A remote bucket is not the local state backend. Snapshot a stopped job as a whole when you need a recoverable backup.
| Destination | Application responsibility |
|---|---|
| SQL database | Batch records into transactions; define an identity key and use an intentional insert/upsert policy. |
| Object storage | Upload completed data and error shards with the report and a file manifest; publish a completion marker last. |
| Search or RAG index | Review extracted text, remove boilerplate, chunk it, create embeddings, and keep _source_url for attribution. |
| CSV / spreadsheets | Read each shard with its own header; preserve identifiers as text and convert numbers explicitly. |