Class representing a document loader for loading data from Spider (spider.cloud). It extends the BaseDocumentLoader class.
const loader = new SpiderLoader({ url: "{url}", apiKey: "{apiKey}", mode: "crawl"});const docs = await loader.load(); Copy
const loader = new SpiderLoader({ url: "{url}", apiKey: "{apiKey}", mode: "crawl"});const docs = await loader.load();
Loads the data from the Spider.
An array of Documents representing the retrieved data.
An error if the data could not be loaded.
Optional
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Use this.load() and splitter.splitDocuments() individually. Loads the documents and splits them using a specified text splitter.
this.load()
splitter.splitDocuments()
Class representing a document loader for loading data from Spider (spider.cloud). It extends the BaseDocumentLoader class.
Example