SubString Post-processing Function

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.

Before

Steps

  1. Edit the scraping agent by clicking on the Edit tab

  2. Go to the field Image Dimension and click on the Edit field button

  3. Now, click on the Add Post-Processing button to add the Substring function, the below dialog box will appear:

  4. Substring function 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

  5. Then, Save the function and the scraping agent configuration

  6. 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.

Signup now to get 100 pages credit free

14 days free trial, no credit card required!