proxyServerPool
getNumProxyServers
Description
Retrieve the number of available proxy servers.
Parameters
This method does not receive any parameters.
Return Values
Returns the number of available proxy servers, as an integer.
setRepopulateThreshold
Description
Set threshold to get more proxy servers.
Parameters
- repopulateThreshold Lowest number of proxies before more proxies are requested.
Return Values
Returns void.
outputProxyServersToLog
Description
Write list of proxies to log.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
writeProxyPoolToFile
Description
Write list of proxies after invalid proxies have been removed.
Parameters
- path File path to where the file should be written, as a string.
Return Values
Returns void.
filter
Description
Set the timeout that will render a proxy as being bad.
Parameters
- timeout Number of seconds before timeout, as an integer.
Return Values
Returns void.
setNumProxiesToValidateConcurrently
Description
Set the number of proxies that can be tested concurrently.
Parameters
- numProxies Number of proxies to be validated concurrently, as an integer.
Return Values
Returns void.
populateFromFile
Description
Add proxy servers to pool using a text file.
Parameters
- filePath Path to the file containing proxy settings, as a string. The format of the file is a hard return delimited list of domain:port listing.
Return Values
Returns void.
ProxyServerPool
Description
Initiate a ProxyServerPool object.
Parameters
This method does not receive any parameters.
Return Values
Returns a ProxyServerPool.
ProxyServerPool
Overview
The proxy server pool object is used to aid with manual anonymization of scrapes. An example of how to setup manual proxy pools is available in the documentation. You will likely want to read that page first if you are new to the process.
Additionally, you should reference the available method's available in the Anonymous API