| title | Tzafon Loader |
|---|---|
| sidebarTitle | Tzafon Loader |
Tzafon programmatic control of browsers and desktops in seconds. Full stealth. Lightning fast.
Install the necessary packages:
```bash npm npm install langchain-tzafon @langchain/core tzafon ``` ```bash pnpm pnpm add langchain-tzafon @langchain/core tzafon ``` ```bash yarn yarn add langchain-tzafon @langchain/core tzafon ``` ```bash bun bun add langchain-tzafon @langchain/core tzafon ```Utilize the TzafonLoader as follows to allow your agent to load websites:
import { TzafonLoader } from "langchain-tzafon";
const loader = new TzafonLoader(["https://example.com"], {
apiKey: "your_api_key", // Optional if TZAFON_API_KEY is set in environment
});
const documents = await loader.load();urls: Required. List of URLs to load.
apiKey: Optional. Tzafon API key. Default isTZAFON_API_KEYenv variable.