Skip to main content

Options

The getHtml function accepts an optional options object as its second parameter. This object allows you to customize the behavior of Waterfall-Fetch.

Options Object

Options is an optional parameter you can pass, you can define:
  • set The set of strategies that will be used, order sensitive,
  • evalFunction

Properties

string
Specifies the strategy set to use. Can be “cheap”, “js”, or null (default).
function
A custom evaluation function to be executed in the context of the page (only applicable when using Puppeteer).

Usage Example

For more information on using custom evaluation functions, see the Evaluation Functions guide.