langchain.js
    Preparing search index...

    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();

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • loaderParams: SpiderLoaderParameters

      Returns SpiderLoader

    Methods

    • Loads the data from the Spider.

      Returns Promise<DocumentInterface[]>

      An array of Documents representing the retrieved data.

      An error if the data could not be loaded.