Substring Post-processing function can be used in the agents, to extract the sub-string from the string of given field in each row. For example, I have this scraping agent 'SubString Function Example(Post-processing)' in my account and I want to get an image dimension from ProductImage field. So, I can use the Substring Post-processing function to extract the substring from the string.
Edit the scraping agent by clicking on the
Go to the field Image Dimension and click on the
Now, click on the
Add Post-Processingbutton to add the
Substringfunction, the below dialog box will appear:
Substringfunction holds the Input parameters as a StartIndex which represents the zero-based starting character position of this sub-string and other one is Length which represents 'the number of character of the sub-string' and both the numeric value extract the sub-string
Savethe function and the scraping agent configuration
And finally, re-run you agent to apply the function in your result.
After SubString function
If we notice the Image Dimension field in the screenshot below, we find the sub-string by using
Substring Post-processing function.