outputProxyServersToLog
void proxyServerPool.outputProxyServersToLog ( )
Description
Write list of proxies to log.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
4.5 | Available for all editions. |
Examples
Write Good Proxies to File
import com.screenscraper.util.*;
// Create a new ProxyServerPool object.
proxyServerPool = new ProxyServerPool();
// Must be set on the session before other calls are made
session.setProxyServerPool(proxyServerPool);
// This tells the pool to populate itself from a file>
proxyServerPool.populateFromFile( "proxies.txt" );
// Validate proxies up to 25 proxies at a time.
proxyServerPool.setNumProxiesToValidateConcurrently( 25 );
// Set timout interval
proxyServerPool.filter( 7 );
// Write good proxies to file
proxyServerPool.writeProxyPoolToFile( "good_proxies.txt" );
// You might also want to write out the list of proxy servers
// to screen-scraper's log.
proxyServerPool.outputProxyServersToLog();
// Create a new ProxyServerPool object.
proxyServerPool = new ProxyServerPool();
// Must be set on the session before other calls are made
session.setProxyServerPool(proxyServerPool);
// This tells the pool to populate itself from a file>
proxyServerPool.populateFromFile( "proxies.txt" );
// Validate proxies up to 25 proxies at a time.
proxyServerPool.setNumProxiesToValidateConcurrently( 25 );
// Set timout interval
proxyServerPool.filter( 7 );
// Write good proxies to file
proxyServerPool.writeProxyPoolToFile( "good_proxies.txt" );
// You might also want to write out the list of proxy servers
// to screen-scraper's log.
proxyServerPool.outputProxyServersToLog();
scraper on 07/16/2010 at 5:21 pm
- Printer-friendly version
- Login or register to post comments