Class: CheerioWebBaseLoader
document_loaders/web/cheerio.CheerioWebBaseLoader
Hierarchy
↳
CheerioWebBaseLoader
↳↳
HNLoader
↳↳
IMSDBLoader
Implements
Constructors
constructor
• new CheerioWebBaseLoader(webPath
, fields?
)
Parameters
Name | Type |
---|---|
webPath | string |
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
Overrides
Defined in
langchain/src/document_loaders/web/cheerio.ts:50
loadAndSplit
▸ loadAndSplit(splitter?
): Promise
<Document
<Record
<string
, any
>>[]>
Parameters
Name | Type |
---|---|
splitter | TextSplitter |
Returns
Promise
<Document
<Record
<string
, any
>>[]>
Implementation of
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
Name | Type |
---|---|
url | string |
caller | AsyncCaller |
timeout | undefined | 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