Skip to main content

Incremental Collection

By default, the CLI collects all inputs every time you run anysite dataset collect. With incremental mode, it tracks what has already been collected and skips those inputs on subsequent runs.

Enable Incremental Mode

The CLI stores cursor data in a metadata.json file alongside your dataset, tracking which inputs have been processed.

Per-Source Refresh Control

Control incremental behavior for each source:
Use refresh: always for search results, trending content, or any data that changes frequently. Use refresh: auto for static data like user profiles.

Reset Cursors

To start fresh and re-collect everything:

Scheduling

Automate data collection with cron expressions in your pipeline configuration:

Start Scheduled Collection

This starts the scheduler which runs the pipeline according to the cron expression. Each run is logged with a unique run ID.

Common Cron Expressions

Webhook Notifications

Get notified when pipeline runs complete or fail:
Notifications include:
  • Pipeline name and run ID
  • Collection status (success/failure)
  • Number of records collected per source
  • Execution duration and error details (on failure)

Run History and Logs

View Run History

Shows a list of all runs with status, timestamp, records collected, and duration.

View Run Logs

Shows detailed logs for a specific run, including per-source progress and any errors.

Auto-Load to Database

Combine scheduling with database loading for a fully automated pipeline:
This automatically loads collected data into the specified database connection after each run. See Database Operations for database configuration.

Complete Automated Pipeline Example

Next Steps

Database Connections

Set up SQLite, PostgreSQL, or ClickHouse connections for data storage

LLM Analysis

Add AI-powered enrichment to your pipelines