Skip to main content
Spider management commands handle JSON configurations stored in the database.

spiders list

List all spiders in the database.

Syntax

Options

--project
string
Filter by project name. If omitted, shows spiders from all projects.

Examples

Output

spiders import

Import or update a spider from a JSON configuration file.

Syntax

Arguments

file
string
required
Path to JSON spider configuration file. Use - to read from stdin.

Options

--project
string
default:"default"
Project name to associate with this spider.
--skip-validation
flag
Skip Pydantic schema validation (not recommended). Use only for backward compatibility.

Examples

Spider Configuration Format

Configuration Fields

name
string
required
Spider name (letters, numbers, hyphens, underscores only). Must be unique per project.
allowed_domains
array
required
List of domains this spider can crawl. URLs outside these domains are filtered.
start_urls
array
required
Initial URLs to crawl. Must be valid HTTP/HTTPS URLs.
source_url
string
Original website URL (for documentation purposes).
rules
array
URL pattern matching rules. Each rule defines which URLs to follow and how to process them.
settings
object
Spider-specific settings that override defaults.
callbacks
object
Custom extraction callbacks with CSS/XPath selectors for non-article content.

Output

Successful Import

Update Existing Spider

Re-importing a spider replaces its configuration entirely. All rules and settings are deleted and recreated.

Validation Failure

spiders delete

Delete a spider and all its associated data.

Syntax

Arguments

name
string
required
Spider name to delete.

Options

--project
string
Project name. If specified, only deletes spider from that project.
--force, -f
flag
Skip confirmation prompt.

Examples

Output

With Confirmation

Force Delete

Deleting a spider removes all configuration, rules, settings, and all scraped items associated with this spider. This operation cannot be undone.

Next Steps

Run Crawls

Start crawling with your imported spiders

View Data

Inspect and export scraped items