setTerminateProxiesOnCompletion
void session.setTerminateProxiesOnCompletion ( boolean terminateProxies )
Description
Manually set the outcome of proxies when the scrape ends.
Parameters
- terminateProxies Whether proxies should be terminated at the end of the session or not, as a boolean.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
5.0 | Available for all editions. |
Examples
Make Sure Proxies are Deleted on Scrape Completion
// Test
if ( session.getTerminateProxiesOnCompletion() )
{
session.log( "Anonymous Proxies are set to be terminated with the scrape." );
}
else
{
// Set proxies to be terminated with the scrape
session.setTerminateProxiesOnCompletion( true );
session.log( "Anonymous Proxies updated to be terminated with the scrape." );
}
if ( session.getTerminateProxiesOnCompletion() )
{
session.log( "Anonymous Proxies are set to be terminated with the scrape." );
}
else
{
// Set proxies to be terminated with the scrape
session.setTerminateProxiesOnCompletion( true );
session.log( "Anonymous Proxies updated to be terminated with the scrape." );
}
See Also
- getTerminateProxiesOnCompletion() [sesison] - Gets whether or not proxies are set to terminate once the scrape ends
scraper on 08/10/2010 at 11:29 am
- Printer-friendly version
- Login or register to post comments