Skip to content

Latest commit

 

History

History
95 lines (68 loc) · 2.11 KB

File metadata and controls

95 lines (68 loc) · 2.11 KB

Operator Guide

First Run

Install:

go install github.com/arnesssr/Spyber/cmd/spyber@latest
go install github.com/arnesssr/Spyber/cmd/spyberd@latest
export SPYBER_DATABASE_URL='postgres://user:pass@localhost:5432/spyber?sslmode=disable'
spyber init
spyber version
spyber find --country KE --query salon --limit 50 --crawl-mode deep
spyber find --country KE --query distributor --limit 100 --crawl-mode exhaustive
spyber scrape --country KE --limit 50
spyber source add --country GB --type seed --url https://example.com
spyber discover --country GB --domain https://shop.example
spyber discover --country GB --from-sources --limit 100

Web UI

make run-ui

Open http://127.0.0.1:8091. For a shared machine, set an admin token:

SPYBER_ADMIN_TOKEN=change-me make run-ui

The browser username is admin; the password is the token.

PostgreSQL

Set SPYBER_DATABASE_URL to use PostgreSQL:

export SPYBER_DATABASE_URL='postgres://user:pass@localhost:5432/spyber?sslmode=disable'
spyber init
make run-ui

The home screen Search contacts action queues a background job with selectable crawl mode. Open Jobs to watch discovery, crawl, contact extraction, and verification progress. Manual sources and broad ecommerce scraping are secondary paths.

Search Provider

Spyber uses DuckDuckGo Lite by default for no-key candidate discovery. Operators can point SPYBER_WEBSEARCH_ENDPOINT at a compatible internal or SearxNG-style HTML search endpoint.

Crawl

spyber crawl --country GB

The crawler uses safe defaults:

  • request timeout
  • response size limit
  • private host blocking
  • source URL retention

Verify

spyber contacts verify --country GB

Verification checks syntax, source presence, suppression, and optional DNS signals when implemented.

Review

spyber review list --country GB
spyber review approve --contact-id con_...
spyber review reject --contact-id con_... --reason unsuitable

Export

spyber export --country GB --format csv --only generic

Exports exclude suppressed contacts and log the export event.