TaskPipe::UserAgentManager_ProxyNet - base class for proxying useragents
"Proxynet" useragents are ones that can change IP. If you are creating a useragent that can do this, it is suggested that you inherit from this class. A suggested basic format for your useragent package is as follows:
package TaskPipe::UserAgentManager_ProxyNet_MyProxySystem; use Moose; extends 'TaskPipe::UserAgentManager_ProxyNet'; sub init { my ($self) = @_; # do any initialisation } sub change_ip{ my ($self) = @_; # do what is needed # to change the proxy ip } sub before_request{ my ($self,$method,@param) = @_; # do something before each request? } sub after_request{ my ($self,$resp,$method,@params) = @_; # do something after each request? } __PACKAGE__->meta->make_immutable; 1;
Tom Gracey <tomgracey@gmail.com>
Copyright (c) Tom Gracey 2018
TaskPipe is free software, licensed under
The GNU Public License Version 3
To install TaskPipe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TaskPipe
CPAN shell
perl -MCPAN -e shell install TaskPipe
For more information on module installation, please visit the detailed CPAN module installation guide.