Skip to main content

Class: CheerioWebBaseLoader

document_loaders/web/cheerio.CheerioWebBaseLoader

Hierarchy

Implements

Constructors

constructor

new CheerioWebBaseLoader(webPath, fields?)

Parameters

NameType
webPathstring
fields?WebBaseLoaderParams

Overrides

BaseDocumentLoader.constructor

Defined in

langchain/src/document_loaders/web/cheerio.ts:22

Properties

caller

caller: AsyncCaller

Defined in

langchain/src/document_loaders/web/cheerio.ts:20


timeout

timeout: number

Defined in

langchain/src/document_loaders/web/cheerio.ts:18


webPath

webPath: string

Defined in

langchain/src/document_loaders/web/cheerio.ts:22

Methods

load

load(): Promise<Document<Record<string, any>>[]>

Returns

Promise<Document<Record<string, any>>[]>

Implementation of

DocumentLoader.load

Overrides

BaseDocumentLoader.load

Defined in

langchain/src/document_loaders/web/cheerio.ts:50


loadAndSplit

loadAndSplit(splitter?): Promise<Document<Record<string, any>>[]>

Parameters

NameType
splitterTextSplitter

Returns

Promise<Document<Record<string, any>>[]>

Implementation of

DocumentLoader.loadAndSplit

Inherited from

BaseDocumentLoader.loadAndSplit

Defined in

langchain/src/document_loaders/base.ts:15


scrape

scrape(): Promise<CheerioAPI>

Returns

Promise<CheerioAPI>

Defined in

langchain/src/document_loaders/web/cheerio.ts:42


_scrape

Static _scrape(url, caller, timeout): Promise<CheerioAPI>

Parameters

NameType
urlstring
callerAsyncCaller
timeoutundefined | number

Returns

Promise<CheerioAPI>

Defined in

langchain/src/document_loaders/web/cheerio.ts:29


imports

Static imports(): Promise<{ load: (content: string | Buffer | AnyNode | AnyNode[], options?: null | CheerioOptions, isDocument?: boolean) => CheerioAPI }>

Returns

Promise<{ load: (content: string | Buffer | AnyNode | AnyNode[], options?: null | CheerioOptions, isDocument?: boolean) => CheerioAPI }>

Defined in

langchain/src/document_loaders/web/cheerio.ts:57