Bot-BasicBot-Pluggable-Module-Pastebin
view release on metacpan or search on metacpan
lib/Bot/BasicBot/Pluggable/Module/PasteBin.pm view on Meta::CPAN
sub _check_pastebin {
my $self = shift;
my $url = $self->get("user_pastebin_url");
my $ua = LWP::UserAgent->new;
$ua->agent("Bot/0.1");
my $req = HTTP::Request->new(POST => $url);
$req->content_type('application/x-www-form-urlencoded');
$req->content('query=libwww-perl&mode=dist');
my $res = $ua->request($req);
my $html = $res->content if $res->is_success;
my $LX = new HTML::LinkExtractor();
$LX->parse(\$html);
for my $link ( @{ $LX->links }){
( run in 0.263 second using v1.01-cache-2.11-cpan-de7293f3b23 )