Metadata-Version: 2.4
Name: analog-fetcher
Version: 0.1.1
Summary: JS-aware fetcher for Analog — Playwright-based HTML fetching that satisfies the analog.fetcher.Fetcher protocol.
Project-URL: Homepage, https://getanalog.io
Author-email: Marcus Campbell <marcus@getanalog.io>
License: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: analog-sdk<0.2.0,>=0.1.0
Requires-Dist: playwright>=1.45
Requires-Dist: pydantic>=2.6
Description-Content-Type: text/markdown

# analog-fetcher

JS-aware fetcher for [Analog](https://getanalog.io) — Playwright-based
HTML rendering for `analog-sdk`.

## Installation

```bash
pip install "analog-sdk[fetcher]"   # installs analog-sdk + analog-fetcher
# or
pip install analog-fetcher           # standalone (pulls analog-sdk too)
```

Then install the browser binaries Playwright uses to render pages:

```bash
playwright install chromium
```

## Usage

```python
from analog import analog
from analog_fetcher import PlaywrightFetcher

fetcher = PlaywrightFetcher(wait_for=".loaded", headless=True)
result = analog("https://example.com", fetcher=fetcher)
```

See https://getanalog.io for full documentation.

## License

MIT — see [LICENSE](./LICENSE).
