@langchain/community
Version:
Third-party integrations for LangChain.js
1 lines • 1.28 kB
Source Map (JSON)
{"version":3,"file":"imsdb.d.ts","names":["Document","CheerioWebBaseLoader","IMSDBLoader","Promise"],"sources":["../../../src/document_loaders/web/imsdb.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { CheerioWebBaseLoader } from \"./cheerio.js\";\n/**\n * A class that extends the CheerioWebBaseLoader class. It represents a\n * loader for loading web pages from the IMSDB (Internet Movie Script\n * Database) website.\n */\nexport declare class IMSDBLoader extends CheerioWebBaseLoader {\n webPath: string;\n constructor(webPath: string);\n /**\n * An asynchronous method that loads the web page using the scrape()\n * method inherited from the base class. It selects the element with the\n * class 'scrtext' using the $ function provided by Cheerio and extracts\n * the text content. It creates a Document instance with the text content\n * as the page content and the source as metadata. It returns an array\n * containing the Document instance.\n * @returns An array containing a Document instance.\n */\n load(): Promise<Document[]>;\n}\n//# sourceMappingURL=imsdb.d.ts.map"],"mappings":";;;;;;;AAOA;;;AAAyCC,cAApBC,WAAAA,SAAoBD,oBAAAA,CAAAA;EAAoB,OAAA,EAAA,MAAA;;;;;;;;;;;UAYjDE,QAAQH"}