Metadata-Version: 2.4
Name: zetta-web
Version: 0.1.0
Summary: Zetta API — AI-powered web fetch, search & structured extraction
Author: Zetta API
Author-email: Zetta API <andyhou3465575@gmail.com>
License: MIT
Project-URL: Homepage, https://zetta-api.com
Project-URL: Documentation, https://zetta-api.com/docs
Project-URL: Repository, https://github.com/lucky-dragon-ai/zetta-sdk
Keywords: web,ai,scraping,search,extraction
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28
Dynamic: author
Dynamic: requires-python

# Zetta Web Tool — Python SDK

AI-powered web automation client for Zetta API.

## Install

```bash
pip install zetta-web
```

## Quick Start

```python
from zetta_web import WebTool

wt = WebTool(api_key="zt_xxxx")

# Fetch any URL with JS rendering → Markdown
md = wt.fetch("https://example.com")
print(md["markdown"])

# Search the web + AI summary
result = wt.search("iPhone 16 price 2026")
print(result["summary"])

# Extract structured data from any site
data = wt.extract(
    "https://www.mercadolibre.com.ve/iphone",
    "get name, price, and seller for first 5 listings"
)
print(data)
```

## API

### `wt.fetch(url, *, wait_for, selector, include_links, max_chars)`
Fetch a URL with full JavaScript rendering, return clean Markdown.

### `wt.search(query, *, engine, num_results, summarize)`
Search the web with optional AI-powered summary.

### `wt.extract(url, instruction, *, model)`
Extract structured data from any page using natural language instructions.

## Requirements

- Python ≥ 3.8
- Zetta API key ([zetta-api.com](https://zetta-api.com))
