One CSS, xPath, JSON Path/JQ selector per line, any rules that matches will be used.
Show advanced help and tips
- CSS - Limit text to this CSS rule, only text matching this CSS rule is included.
- JSON - Limit text to this JSON rule, using either JSONPath or jq (if installed).
- JSONPath: Prefix with
json:
, use json:$
to force re-formatting if required, test your JSONPath here.
- jq: Prefix with
jq:
and test your jq here. Using jq allows for complex filtering and processing of JSON data with built-in functions, regex, filtering, and more. See examples and documentation here. Prefix jqraw:
outputs the results as text instead of a JSON list.
- XPath - Limit text to this XPath rule, simply start with a forward-slash. To specify XPath to be used explicitly or the XPath rule starts with an XPath function: Prefix with
xpath:
- Example:
//*[contains(@class, 'sametext')]
or xpath:count(//*[contains(@class, 'sametext')])
, test your XPath here
- Example: Get all titles from an RSS feed
//title/text()
- To use XPath1.0: Prefix with
xpath1:
-
Please be sure that you thoroughly understand how to write CSS, JSONPath, XPath, or jq selector rules before filing an issue on GitHub! here for more CSS selector help.