Function examples
HTML processing
element_text
element_textSample HTML
<!DOCTYPE html>
<html>
<body>
<div id="product">
<div id="product-description">This is a nice product</div>
<div id="product-price"> 12 3
</div>
</div>
</body>
</html>{
"price": {
"_fns": [
{
"_fn": "xpath_one",
"_args": [".//*[@id='product-price']"]
},
{
"_fn": "element_text"
}
]
}
}xpath
xpathSample HTML
xpath_one
xpath_oneSample HTML
String manipulation
amount_from_string
amount_from_stringSample HTML
amount_range_from_string
amount_range_from_stringSample HTML
join
joinSample HTML
regex_find_all
regex_find_allSample HTML
regex_search
regex_searchSample HTML
regex_substring
regex_substringSample HTML
Common functions
convert_to_*
convert_to_*Sample HTML
select_nth
select_nthSample HTML
Math functions
average
averageSample HTML
max
maxSample HTML
min
minSample HTML
product
productSample HTML
Last updated
Was this helpful?

