Skip to main content

Proxy Transformation Script

A script used to change proxy the properties at run time. The script can also be used to do special validation at run time.

This will allow use of certain proxy provider options, such as sticky proxy sessions where the session ID is specified as part of the proxy username.

This will also allow custom proxy verification before the proxy is being used. If a proxy is not valid, the script should return a value indicating rotation of proxies, and if the proxy should be removed from the pool.

Proxy transformation takes place just before any proxy is used. It's agent wide by nature. Below are the some example use cases when we can use Proxy Transformation:

  1. It can be used when a proxy may need custom verification at runtime, to avoid extracting bad data for example. 

  2. A proxy may need custom username parameters at runtime to specify session.

  3. Proxies may need to be disabled for specific URLs.


Pion Script available on roxy Transformatthe Agent Command Properties Tab.

The following example transforms the proxy in the agent:

  • C#

  • Python

using System;
using Sequentum.ContentGrabber.Api;
public class Script
//See help for a definition of ProxyTransfomationScriptArguments.
public static TransformedProxy TransformProxy(ProxyTransfomationScriptArguments args)
return args.Proxy.GetTransformedProxy("", "username", "pswd");

import clr
from Sequentum.ContentGrabber.Api import *
def TransformProxy(args):
return args.Proxy.GetTransformedProxy("", "username", "pswd");

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.