Optional
headersOptional
selectorOptional
textOverrides the base load() method to extract the text content from the loaded document using a specific selector for the College Confidential website. It creates a Document instance with the extracted text and metadata, and returns an array containing the Document instance.
An array containing a Document instance with the extracted text and metadata from the loaded College Confidential web document.
Optional
splitter: BaseDocumentTransformer<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Static
importsA static method that dynamically imports the Cheerio library and returns the load function. If the import fails, it throws an error.
A Promise that resolves to an object containing the load function from the Cheerio library.
Static
scrapeFetches web documents from the given array of URLs and loads them using Cheerio. It returns an array of CheerioAPI instances.
An array of URLs to fetch and load.
Optional
textDecoder: TextDecoderOptional
options: CheerioOptions & { A Promise that resolves to an array of CheerioAPI instances.
A document loader specifically designed for loading documents from the College Confidential website. It extends the CheerioWebBaseLoader.
Example