Load pre-rendered web pages using a headless browser hosted on Browserbase.
Depends on @browserbasehq/sdk package. Get your API key from https://browserbase.com
@browserbasehq/sdk
import { BrowserbaseLoader } from "langchain/document_loaders/web/browserbase";const loader = new BrowserbaseLoader(["https://example.com"], { apiKey: process.env.BROWSERBASE_API_KEY, textContent: true,});const docs = await loader.load(); Copy
import { BrowserbaseLoader } from "langchain/document_loaders/web/browserbase";const loader = new BrowserbaseLoader(["https://example.com"], { apiKey: process.env.BROWSERBASE_API_KEY, textContent: true,});const docs = await loader.load();
The URLs of the web pages to load.
Browserbase client options.
Load pages from URLs.
Loads the documents and splits them using a specified text splitter.
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Generated using TypeDoc
Load pre-rendered web pages using a headless browser hosted on Browserbase.
Depends on
@browserbasehq/sdk
package. Get your API key from https://browserbase.comExample
Param: urls
The URLs of the web pages to load.
Param: options
Browserbase client options.