where property
Optional list of strings to check if sibling text contains
When provided, this list acts as a filter to ensure the sibling element contains at least one of the specified strings in its text content. This is useful for targeting specific sibling elements that contain particular keywords or identifiers, making the extraction more precise.
Example: If set to 'price', 'cost'
, only sibling elements containing
either "price" or "cost" in their text will be considered.
Implementation
final List<String>? where;