App::ProxyHunter::SearchEngine - base class for proxyhunter's search engine
package App::ProxyHunter::SearchEngine::MyEngine; use Mo; extends 'App::ProxyHunter::SearchEngine'; sub next { my $self = shift; ... return unless $has_more; return $self->_get_proxylist($url); }
You should inherit this class to implement specific search engine. This subclass may be adapter for some search engine like yahoo.com or for some specific site with proxy list.
This method should be implemented in subclass and return reference to array with portion of proxies in host:port format or undef if there is no more proxies.
host:port
This method implemented in base class and may be used in subclass to extract proxy list from specified $url. It returns reference to array with found proxies. It uses some simple regular expression for search and may not find any proxy for some tricky web sites.
This attribute contains LWP::UserAgent instance which may be used for http requests
This attribute contains urlencoded query which should be used in subclass to search for proxy list. You can ignore it if this is adapter for some specific site with proxy list where you don't need query.
To install App::ProxyHunter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ProxyHunter
CPAN shell
perl -MCPAN -e shell install App::ProxyHunter
For more information on module installation, please visit the detailed CPAN module installation guide.