Replace Post Processing Function

Replace Post processing function can be used in agents to replace some text with another in extracted field result. For example, I have this scraping agent "Replace Function Example(Post-Processing)" in my account. And I wanted to replace the "$" symbol with "USD" from the "ProductPrice" field in each row. So, I can use the built-in Replace post-processing function here

Replace before result


  1. Edit the scraping agent by clicking on the "Edit" tab
  2. Go to the field "ProductPrice" and click on the "Edit field" button
  3. Now, click on the "Add" post-processing button to add the "Replace" function, the below dialog box will appear

    Replace function in agenty
  4. Now enter the text you want to replace in the "ReplaceWhat" parameter (the old value which needs to be replaced)
  5. Then enter the text you want to replace with in the "ReplaceWith" parameter (the new value)
  6. Then "Save" the function and the scraping agent configuration
  7. And finally re-run you agent to apply the changes.

After Replace Function

If you notice the screenshot below, The "ProductPrice" field has been updated by the "Replace" function we've added in post-processing.

Replace after result