« TaskPipe/OpenProxyManager/IPList_ProxyNova.pm
↑ Summary
TaskPipe/OpenProxyManager/IPList_Xroxy.pm »
| 1 | package TaskPipe::OpenProxyManager::IPList_ProxyNova::Settings; | ||
| 2 | |||
| 3 | use Moose; | ||
| 4 | with 'MooseX::ConfigCascade'; | ||
| 5 | |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | TaskPipe::OpenProxyManager::IPList_ProxyNova::Settings - Settings for TaskPipe::OpenProxyManager::IPList_ProxyNova | ||
| 10 | |||
| 11 | =head1 METHODS | ||
| 12 | |||
| 13 | =over | ||
| 14 | |||
| 15 | =item countries_url | ||
| 16 | |||
| 17 | The URL to use to retrieve countries | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | has countries_url => ( | ||
| 22 | is => 'ro', | ||
| 23 | isa => 'Str', | ||
| 24 | default => 'https://www.proxynova.com/proxy-server-list/' | ||
| 25 | ); | ||
| 26 | |||
| 27 | =item url_template | ||
| 28 | |||
| 29 | The template to build URLs with | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | has url_template => ( | ||
| 34 | is => 'ro', | ||
| 35 | isa => 'Str', | ||
| 36 | default => 'https://www.proxynova.com/proxy-server-list/country-<country_code>/' | ||
| 37 | ); | ||
| 38 | |||
| 39 | =item ua_mgr_module | ||
| 40 | |||
| 41 | The UserAgentManager module to use | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | has ua_mgr_module => (is => 'ro', isa => 'Str', default => 'TaskPipe::UserAgentManager_ProxyNet_TOR'); | ||
| 46 | |||
| 47 | |||
| 48 | =item ua_handler_module | ||
| 49 | |||
| 50 | The UserAgentHandler module to use | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | has ua_handler_module => ( | ||
| 55 | is => 'ro', | ||
| 56 | isa => 'Str', | ||
| 57 | default => 'TaskPipe::UserAgentManager::UserAgentHandler_PhantomJS' | ||
| 58 | ); | ||
| 59 | |||
| 60 | |||
| 61 | =item default_port | ||
| 62 | |||
| 63 | The port to use if no port is specified (probably will always be 80) | ||
| 64 | |||
| 65 | =back | ||
| 66 | |||
| 67 | =cut | ||
| 68 | |||
| 69 | has default_port => (is => 'ro', isa => 'Int', default => 80); | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | __PACKAGE__->meta->make_immutable; | ||
| 75 | 1; |