Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 989 Bytes

File metadata and controls

40 lines (29 loc) · 989 Bytes
title Tzafon
sidebarTitle Tzafon Loader

Description

Tzafon programmatic control of browsers and desktops in seconds. Full stealth. Lightning fast.

Installation and setup

Install the integration package:

```bash pip pip install langchain-tzafon ``` ```bash uv uv add langchain-tzafon ```

Loading documents

You can load webpages into LangChain using TzafonLoader.

from langchain_tzafon import TzafonLoader

# Ensure TZAFON_API_KEY is set in your environment variables, or pass it directly.
loader = TzafonLoader(urls=["https://example.com"], api_key="your_api_key")
documents = loader.load()
print(documents[0].page_content[:10])

Loader Options

  • urls Required. A list of URLs to fetch.
  • api_key Optional. Tzafon API key. If not provided, it will look for TZAFON_API_KEY in environment variables.
  • text_content Optional. Retrieve only text content. Default is True.