Skip to main content

SpiderFoot Client

A Python client library and command-line interface for the SpiderFoot OSINT automation tool API.

Installation

pip install spiderfoot-client

Library Usage

from spiderfoot_client import SpiderFootClient

# Initialize client
client = SpiderFootClient(
    base_url="http://localhost:5001",
    username="admin", 
    password="your_password"
)

# Start a scan
result = client.start_scan(
    target="example.com",
    scan_name="My Scan",
    use_case="passive"
)
scan_id = result['id']

# Monitor scan progress
status = client.get_scan_status(scan_id)
print(f"Scan status: {status['status']}")

# Wait for completion
final_status = client.wait_for_completion(scan_id)

# Get results
results = client.get_scan_results(scan_id)

Command Line Usage

Set environment variables:

export SPIDERFOOT_URL="http://localhost:5001"
export SPIDERFOOT_USERNAME="admin"
export SPIDERFOOT_PASSWORD="your_password"

Commands:

# Test connectivity
spiderfoot-client ping

# Start a scan
spiderfoot-client start example.com "My Scan" --usecase passive

# List all scans
spiderfoot-client list

# Get scan status
spiderfoot-client status SCAN_ID

# Get scan results
spiderfoot-client results SCAN_ID

# Stop a scan
spiderfoot-client stop SCAN_ID

# Delete a scan
spiderfoot-client delete SCAN_ID

# Export results
spiderfoot-client export SCAN_ID --format json

# Wait for scan completion
spiderfoot-client wait SCAN_ID

# Get available modules
spiderfoot-client modules

# Search results
spiderfoot-client search "query" --scan-id SCAN_ID

Configuration

The client can be configured using environment variables:

  • SPIDERFOOT_URL: SpiderFoot server URL (default: http://localhost:5001)
  • SPIDERFOOT_USERNAME: Username for authentication (default: admin)
  • SPIDERFOOT_PASSWORD: Password for authentication (required)

Requirements

  • Python 3.8+
  • requests>=2.31.0

License

MIT License

Metadata

Release files for spiderfoot-client 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spiderfoot-client 1.0.0
File Size Uploaded
spiderfoot_client-1.0.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spiderfoot-client 1.0.0
File Interpreter ABI Platform
spiderfoot_client-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / spiderfoot_client-1.0.0.tar.gz

Download URL spiderfoot_client-1.0.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7e780f3d6a449d9c8d52b79bf00b54018e159f7bb976473ceb9fa472c1f2658a
BLAKE2b-256 checksum
How to use checksums
5915151452fcc928ce2c05c712cafae31ea37f14c96dbf0a9377c30bc8865ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / spiderfoot_client-1.0.0-py3-none-any.whl

Download URL spiderfoot_client-1.0.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe6a044f3a56805abf71fae366d89a7b61bef5936cce43d25862b25edd656deb
BLAKE2b-256 checksum
How to use checksums
b8c2547ae46945e7265dd039ebfabad5635bea76152eb350d3775487274e04fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page