Length Post-processing Function can be used to get the length of the value in our extracted field result. For example, I have this scraping agent "Length Function Example(Post-Processing)" in my account and I want to get the length of product field Name for some internal use. So, We can use the Length Post-Processing Function to get the characters length in particular field.
Add a new field name something like I did, field Name Length and selector will be same as for product field Name
Now, Click on the
Add Post-Processingbutton to add the
LengthPost-Processing function, The below dialog box will appear
There is no parameter requires in this function, so just adding this is enough
Savethe function and the scraping agent configuration
And finally re-run you agent to apply the changes.
After Length Function
Now,if we look the updated result, we have a length of product Name in a new field called Name Length where we can see the actual number of characters in this field.