App-SpamcupNG
view release on metacpan or search on metacpan
Date : 2022-03-20 11:43:04 +0000
chore: module prereq
Change: fb701af0cd61a22674673e1f5337f6a245b75fdc
Author: Alceu Rodrigues de Freitas Junior <glasswalk3r@yahoo.com.br>
Date : 2022-03-19 14:16:01 +0000
Merge pull request #8 from glasswalk3r/feature/cookie_login
Cookie based login
Change: 0c1d23509dcd6e71dbbe2e0bbccf4b2f37737a0c
Author: Alceu Rodrigues de Freitas Junior <glasswalk3r@yahoo.com.br>
Date : 2022-03-19 14:15:29 +0000
refactor: better handling of form data
Change: f68edfceb35ec376ddd5db7a6f17809e6cfd4fa5
Author: Alceu Rodrigues de Freitas Junior <glasswalk3r@yahoo.com.br>
Date : 2022-03-19 12:03:45 +0000
}
},
"runtime" : {
"requires" : {
"Class::Accessor" : "0.51",
"DBD::SQLite" : "1.74",
"DBI" : "1.643",
"DateTime" : "1.59",
"HTML::Form" : "6.11",
"HTML::TreeBuilder::XPath" : "0.14",
"HTTP::CookieJar::LWP" : "0.014",
"HTTP::Cookies" : "6.01",
"HTTP::Request" : "6.44",
"HTTP::Request::Common" : "6.44",
"LWP::Protocol::https" : "6.14",
"LWP::UserAgent" : "6.72",
"Log::Log4perl" : "1.57",
"Mozilla::PublicSuffix" : "v1.0.6",
"Set::Tiny" : "0.04",
"YAML::XS" : "0.88",
"perl" : "5.014004"
}
App::SpamcupNG::Warning::Yum:
file: lib/App/SpamcupNG/Warning/Yum.pm
version: '0.020'
requires:
Class::Accessor: '0.51'
DBD::SQLite: '1.74'
DBI: '1.643'
DateTime: '1.59'
HTML::Form: '6.11'
HTML::TreeBuilder::XPath: '0.14'
HTTP::CookieJar::LWP: '0.014'
HTTP::Cookies: '6.01'
HTTP::Request: '6.44'
HTTP::Request::Common: '6.44'
LWP::Protocol::https: '6.14'
LWP::UserAgent: '6.72'
Log::Log4perl: '1.57'
Mozilla::PublicSuffix: v1.0.6
Set::Tiny: '0.04'
YAML::XS: '0.88'
perl: '5.014004'
resources:
Makefile.PL view on Meta::CPAN
"LICENSE" => "gpl",
"MIN_PERL_VERSION" => "5.014004",
"NAME" => "App::SpamcupNG",
"PREREQ_PM" => {
"Class::Accessor" => "0.51",
"DBD::SQLite" => "1.74",
"DBI" => "1.643",
"DateTime" => "1.59",
"HTML::Form" => "6.11",
"HTML::TreeBuilder::XPath" => "0.14",
"HTTP::CookieJar::LWP" => "0.014",
"HTTP::Cookies" => "6.01",
"HTTP::Request" => "6.44",
"HTTP::Request::Common" => "6.44",
"LWP::Protocol::https" => "6.14",
"LWP::UserAgent" => "6.72",
"Log::Log4perl" => "1.57",
"Mozilla::PublicSuffix" => "1.0.6",
"Set::Tiny" => "0.04",
"YAML::XS" => "0.88"
},
"TEST_REQUIRES" => {
Makefile.PL view on Meta::CPAN
my %FallbackPrereqs = (
"Class::Accessor" => "0.51",
"DBD::SQLite" => "1.74",
"DBI" => "1.643",
"DateTime" => "1.59",
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"HTML::Form" => "6.11",
"HTML::TreeBuilder::XPath" => "0.14",
"HTTP::CookieJar::LWP" => "0.014",
"HTTP::Cookies" => "6.01",
"HTTP::Request" => "6.44",
"HTTP::Request::Common" => "6.44",
"LWP::Protocol::https" => "6.14",
"LWP::UserAgent" => "6.72",
"Log::Log4perl" => "1.57",
"Mozilla::PublicSuffix" => "1.0.6",
"Perl::Tidy::Sweetened" => "1.18",
"Pod::Tidy" => "0.10",
"Set::Tiny" => "0.04",
"Test::Exception" => "0.43",
bin/spamcup view on Meta::CPAN
#!perl
use warnings;
use strict;
use HTTP::Cookies 6.01;
use Getopt::Std;
use File::Spec;
use App::SpamcupNG qw(main_loop read_config %OPTIONS_MAP config_logger);
use App::SpamcupNG::UserAgent;
our $VERSION = '0.020'; # VERSION
# Delay between HTTP requests. Adjust this if Spamcop.net asks!
use constant DELAY => 5;
my %opts;
# This file is generated by Dist::Zilla
# Prereqs are detected automatically. You do not need to edit this file
requires "Class::Accessor" => "0.51";
requires "DBD::SQLite" => "1.74";
requires "DBI" => "1.643";
requires "DateTime" => "1.59";
requires "HTML::Form" => "6.11";
requires "HTML::TreeBuilder::XPath" => "0.14";
requires "HTTP::CookieJar::LWP" => "0.014";
requires "HTTP::Cookies" => "6.01";
requires "HTTP::Request" => "6.44";
requires "HTTP::Request::Common" => "6.44";
requires "LWP::Protocol::https" => "6.14";
requires "LWP::UserAgent" => "6.72";
requires "Log::Log4perl" => "1.57";
requires "Mozilla::PublicSuffix" => "v1.0.6";
requires "Set::Tiny" => "0.04";
requires "YAML::XS" => "0.88";
requires "perl" => "5.014004";
lib/App/SpamcupNG/UserAgent.pm view on Meta::CPAN
package App::SpamcupNG::UserAgent;
use warnings;
use strict;
use Carp qw(confess);
use LWP::UserAgent 6.72;
use HTTP::Request 6.44;
use Log::Log4perl 1.57 qw(get_logger :levels);
use HTTP::CookieJar::LWP 0.014;
use Mozilla::PublicSuffix v1.0.6;
use HTTP::Request::Common 6.44 qw(POST);
our $VERSION = '0.020'; # VERSION
=head1 NAME
App::SpamcupNG::UserAgent - the SpamcupNG HTTP user agent
=head1 SYNOPSIS
lib/App/SpamcupNG/UserAgent.pm view on Meta::CPAN
domain => 'https://www.spamcop.net/',
password_field => 'password',
current_base_url => undef
};
bless $self, $class;
my $ua = LWP::UserAgent->new(
agent => ( $self->{name} . '/' . $version ),
protocols_allowed => ['https'],
cookie_jar => HTTP::CookieJar::LWP->new
);
# for form based authentication
push @{ $ua->requests_redirectable }, 'POST';
$self->{user_agent} = $ua;
return $self;
}
=head2 user_agent
t/00-report-prereqs.dd view on Meta::CPAN
}
},
'runtime' => {
'requires' => {
'Class::Accessor' => '0.51',
'DBD::SQLite' => '1.74',
'DBI' => '1.643',
'DateTime' => '1.59',
'HTML::Form' => '6.11',
'HTML::TreeBuilder::XPath' => '0.14',
'HTTP::CookieJar::LWP' => '0.014',
'HTTP::Cookies' => '6.01',
'HTTP::Request' => '6.44',
'HTTP::Request::Common' => '6.44',
'LWP::Protocol::https' => '6.14',
'LWP::UserAgent' => '6.72',
'Log::Log4perl' => '1.57',
'Mozilla::PublicSuffix' => 'v1.0.6',
'Set::Tiny' => '0.04',
'YAML::XS' => '0.88',
'perl' => '5.014004'
}
( run in 0.569 second using v1.01-cache-2.11-cpan-e9199f4ba4c )