IndexOf Post-processing Function

IndexOf Post-processing technique can be used in the agents to return either zero based index position of given input text if the given input is found in field result or One if it is not. For example, I have this scraping agent “IndexOf Function Example(Post-Processing)” in my account, here I am using this function for City field

Before

Steps

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

  2. Add new Field, name it as I gave Index of comma in city and enter the City field selector

  3. Now, click on the Add post- processing button to add the IndexOf function, the below dialog box will appears

  4. Now, enter the text as , in the input field, to return the Zero based index position of given input if that string is found in the field result, or One if it is not

  5. Then, Save the function and scraping agent configuration

  6. And finally, re-run your agent to apply the changes.

After IndexOf function

If you notice the screenshot, Index of comma in the city field has the index position of the City field by using the IndexOf Post-Processing function.

Signup now to get 100 pages credit free

14 days free trial, no credit card required!