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 do field
Name Length and selector will be same as for product field
- Now, Click on the "Add Post-Processing" button to add the
Length Post-Processing function, The below dialog box will appear
- There is no parameter require in this function, so just adding this is enough
- Then "Save" the function and the scraping agent configuration
- And finally re-run you agent to apply the changes.
After Length Function:
Now if we look the latest 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.