Optional
options: PlaywrightWebBaseLoaderOptionsMethod that calls the scrape method and returns the scraped HTML content as a Document object. Returns a Promise that resolves to an array of Document objects.
Promise that resolves to an array of Document objects.
Loads the documents and splits them using a specified text splitter.
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Method that calls the _scrape method to perform the scraping of the web page specified by the webPath property. Returns a Promise that resolves to the scraped HTML content of the web page.
Promise that resolves to the scraped HTML content of the web page.
Static
_scrapeOptional
options: PlaywrightWebBaseLoaderOptionsStatic
importsStatic method that imports the necessary Playwright modules. Returns a Promise that resolves to an object containing the imported modules.
Promise that resolves to an object containing the imported modules.
Generated using TypeDoc
Class representing a document loader for scraping web pages using Playwright. Extends the BaseDocumentLoader class and implements the DocumentLoader interface.