API Reference

Gets data from multiple repeated places under the same parent element (with a query selector)

Options:

OptionRequiredDescriptionExample
datatrue(array) Data to collect. Keys of an Object in the Array: value & variableName & querySelector. Multiple objects can be there.[
{
"value":"link",
"variableName":"searchLink",
"querySelector":"a"
}
}
dataNametrue(string) A Name to store all fetched values in.fetchedData
parentSelectortrue(string) Query selector of the parent element to get data from.".g"

Example 1: Gets all links from the given parent element

{
  "action": "get-data",
  "options": {
    "data": [
      {
        "value": "link",
        "variableName": "searchLink",
        "querySelector": "a"
      }
    ],
    "dataName": "searchResults",
    "parentSelector": ".g"
  }
}