Class that extends the BaseDocumentLoader class and implements the DocumentLoader interface. It represents a document loader for scraping web pages using Puppeteer.

Hierarchy

Implements

Constructors

Properties

options: undefined | PuppeteerWebBaseLoaderOptions
webPath: string

Methods

  • Method that calls the _scrape method to perform the scraping of the web page specified by the webPath property.

    Returns Promise<string>

    Promise that resolves to the scraped HTML content of the web page.

  • Static method that imports the necessary Puppeteer modules. It returns a Promise that resolves to an object containing the imported modules.

    Returns Promise<{
        launch: ((options?) => Promise<Browser>);
    }>

    Promise that resolves to an object containing the imported Puppeteer modules.

Generated using TypeDoc