Docs/Integrations

pandas, DuckDB & Parquet

Read completed output incrementally, convert field types, and produce an analytical dataset.

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

Query 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 duckdb
shell1 lines · copy-ready

Databases, 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.

DestinationApplication responsibility
SQL databaseBatch records into transactions; define an identity key and use an intentional insert/upsert policy.
Object storageUpload completed data and error shards with the report and a file manifest; publish a completion marker last.
Search or RAG indexReview extracted text, remove boilerplate, chunk it, create embeddings, and keep _source_url for attribution.
CSV / spreadsheetsRead each shard with its own header; preserve identifiers as text and convert numbers explicitly.

API sources