setProxyServerPool
void session.setProxyServerPool ( ProxyServerPool proxyServerPool )
Description
Associate a proxy pool with a scraping session.
Parameters
- proxyServerPool A ProxyServerPool object.
Return Values
Returns void.
Change Log
Version |
Description |
4.5 |
Available for all editions. |
Examples
Associate Proxy Pool with Scraping Session
// Create a new ProxyServerPool object. This object will
// control how screen-scraper interacts with proxy servers.
proxyServerPool = new ProxyServerPool();
// We give the current scraping session a reference to
// the proxy pool. This step should ideally be done right
// after the object is created (as in the previous step).
session.setProxyServerPool( proxyServerPool );