Pcore::API::ProxyPool::Proxy - Proxy lists management subsystem
use Pcore::Proxy::Pool; my $pool = Pcore::Proxy::Pool->new( { source => [ { class => 'Tor', host => '192.168.175.1', port => 9050, }, { class => 'List', proxies => [ # 'connect://107.153.45.156:80', 'connect://23.247.255.3:80', 'connect://23.247.255.2:80', 'connect://104.144.28.45:80', 'connect://107.173.180.52:80', 'connect://155.94.218.158:80', 'connect://155.94.218.160:80', 'connect://198.23.216.57:80', 'connect://172.245.109.210:80', 'connect://107.173.180.156:80', ], }, ], } ); $pool->get_proxy( ['connect', 'socks'], sub ($proxy = undef) { ...; return; } );
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.