Scripting

Filters

Filters are JavaScript functions that take an element and return a value, usually taken from or related to the element. They are used by Helium Scraper to recognize particular characteristics of elements that are then used to decide whether an element belongs to a particular selector or not. While there's a list of built-in filters, additional ones can be created to produce more fine-grained selectors.

Gatherers

Gatherers are JavaScript functions that take an element and return a value. They can be accessed from within globals with the 'Gather.' prefix to extract data from the current element.

Scripts

Scripts are plain strings that represent the body of a JavaScript function. They can be accessed with the 'Script.' prefix and passed as the first parameter of the Browser.EvalScript or Browser.RunScript functions. The value of the provided argument will be assigned to the 'argument' variable.