Skip to main content

Official Kadoa SDK for Python - Web data extraction and automation

Project description

Kadoa SDK for Python

Official Python SDK for the Kadoa API, providing easy integration with Kadoa's web data extraction platform.

Installation

pip install kadoa-sdk

Getting Started

Obtaining an API Key

  1. Register at kadoa.com
  2. Navigate to your account page
  3. Copy your API key

Quick Start

from kadoa_sdk import initialize_app, run_extraction, KadoaConfig, ExtractionOptions

# Initialize the SDK
app = initialize_app(KadoaConfig(
    api_key="your-api-key"
))

# Run an extraction
result = run_extraction(app, ExtractionOptions(
    urls=["https://example.com"],
    name="My Extraction Workflow"
))

if result:
    print(f"Workflow created with ID: {result.workflow_id}")

Configuration

Basic Configuration

app = initialize_app(KadoaConfig(
    api_key="your-api-key",
    base_url="https://api.kadoa.com",  # optional
    timeout=30                         # optional, in seconds
))

Using Environment Variables

KADOA_API_KEY=your-api-key
KADOA_API_URL=https://api.kadoa.com
KADOA_TIMEOUT=30
import os
from dotenv import load_dotenv
from kadoa_sdk import initialize_app, KadoaConfig

load_dotenv()

app = initialize_app(KadoaConfig(
    api_key=os.environ["KADOA_API_KEY"],
    base_url=os.environ.get("KADOA_API_URL", "https://api.kadoa.com"),
    timeout=int(os.environ.get("KADOA_TIMEOUT", "30"))
))

API Reference

initialize_app(config: KadoaConfig)

  • api_key (required): Your Kadoa API key
  • base_url (optional): API base URL
  • timeout (optional): Request timeout in seconds

Returns an app instance with configured API client.

run_extraction(app, options: ExtractionOptions)

  • urls: List of URLs to extract from
  • name: Workflow name
  • Additional options available in API documentation

Examples

See examples directory for more usage examples.

Requirements

  • Python 3.8+

License

MIT

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kadoa_sdk-0.3.1.tar.gz (171.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kadoa_sdk-0.3.1-py3-none-any.whl (665.6 kB view details)

Uploaded Python 3

File details

Details for the file kadoa_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: kadoa_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 171.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for kadoa_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4fc765636ce4020e9ed2c84bfd88d341a41ffcb5a831ba1ab1c23304d2ee3ae4
MD5 7d3a718fec0fcbe08e3feb065c42f02f
BLAKE2b-256 c3d8afe21bcda1f8ce6f6abfd711e85e0e6bfa1dd7c66a838c5c17b3a82b46d1

See more details on using hashes here.

File details

Details for the file kadoa_sdk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kadoa_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 665.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for kadoa_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e586d5fbffca4b828aa88840d4c6e2f8d504126a908b2df86c58240aeb4d9800
MD5 e9a156d230f7efd0c9caa5c83e2f73ad
BLAKE2b-256 7428784c328048e5d89aa41f04e618760a58e44488bd9a9fd8c2c007be981160

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page