Contains Post-Processing Function can be used to know how many rows contains a particular value. If the given particular value exists in a row than it returns
true otherwise returns
false. For example, We have this scraping agent "Contains Function Example(Post-Processing)" in my account and We want to know how many rows of field
Keywords contain the
Sony value. So, We can use the
Contains Post-Processing Function to get the number of rows which contains
- Add a new field name something like I do field
IsKeyword Sony and selector will be same as for
- Now, Click on the "Add Post-Processing" button to add the
Contains Post-Processing function, The below dialog box will appear
- Now enter the text in "
Input" parameter you want to Find from the field, As I did in screenshot above to insert the Sony
- Then "Save" the function and the scraping agent configuration
- And finally re-run you agent to apply the changes.
After Append Function:
If you notice the latest result, It returns
true where the value
Sony exists in the field
Keyword and it returns
false where the value doesn't exist in the field.