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
- Register at kadoa.com
- Navigate to your account page
- 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 keybase_url(optional): API base URLtimeout(optional): Request timeout in seconds
Returns an app instance with configured API client.
run_extraction(app, options: ExtractionOptions)
urls: List of URLs to extract fromname: Workflow name- Additional options available in API documentation
Examples
See examples directory for more usage examples.
Requirements
- Python 3.8+
License
MIT
Support
- Documentation: docs.kadoa.com
- Support: support@kadoa.com
- Issues: GitHub Issues
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kadoa_sdk-0.3.1-py3-none-any.whl
(665.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc765636ce4020e9ed2c84bfd88d341a41ffcb5a831ba1ab1c23304d2ee3ae4
|
|
| MD5 |
7d3a718fec0fcbe08e3feb065c42f02f
|
|
| BLAKE2b-256 |
c3d8afe21bcda1f8ce6f6abfd711e85e0e6bfa1dd7c66a838c5c17b3a82b46d1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e586d5fbffca4b828aa88840d4c6e2f8d504126a908b2df86c58240aeb4d9800
|
|
| MD5 |
e9a156d230f7efd0c9caa5c83e2f73ad
|
|
| BLAKE2b-256 |
7428784c328048e5d89aa41f04e618760a58e44488bd9a9fd8c2c007be981160
|