StartsWith Post-processing Function

StartsWith Post-processing function can be used in agents to set the 'true or 'false' value, where the fields start with or not either for character or for string respectively. For example, I have this scraping agent "StartsWith Function Example(Post-processing)" in my account and I want to make sure the field City start with Washington is 'true' or for other fields is 'false', using StartsWith Post-Processing function in the IsWashington City field which is created in the table for assigning the 'true' or 'false' value.

Before

StartsWith-before-result

Steps

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

  2. Add a new field name it something like me named it IsWashington City and selector will be same as for City field

  3. Click on the Add Post-Processing button to add the StartsWith Post-processing function, the below dialog box will appear

    dialog box

  4. Now ,enter the text as 'Washington' in Input parameter which compare to this field of the table and return the true whenever it matches else false

  5. Then Save the function and the scraping agent configuration

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

After StartsWith Function

If you notice the screenshot below, the IsWashington City field is updated by StartsWith Post-processing function.

StartsWith-afte-result