The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::BugMeNot - Get anonymously shared accounts for online services from BugMeNot

SYNOPSIS

  use WWW::BugMeNot;

  my $client = WWW::BugMeNot->new;
  my @accounts = $client->get_accounts_for('http://example.com/');

  for my $account (@accounts) {
      print $account->{ username };
      print $account->{ password };
      print $account->{ comment  };
      print $account->{ stats    }{ percentage };
      print $account->{ stats    }{ votes      };
  }

DESCRIPTION

BugMeNot is a challenging service which collects and shares accounts for various online services aiming for freeness on online activities. It allows us to bypass login to online services, sometimes it's annoying when we want to only take a glance at a strange service, using accounts got from there.

This module provides a easy way to get such shared accounts easily from BugMeNot.

METHODS

new

      my $client = WWW::BugMeNot->new;

    Creates and returnss a new WWW::BugMeNot object.

get_accounts_for ( $uri )

      my @accounts = $client->get_accounts_for($uri);
    
      for my $account (@accounts) {
          $account->{ username };
          $account->{ password };
          $account->{ comment  };
          $account->{ stats    }{ percentage };
          $account->{ stats    }{ votes      };
      }

    get_accounts_for() extracts anonymously shared accounts for the online service indicated by $uri. If the accounts found, returns them as a list of hash-refs, or returns an empty list.

    The accounts are ordered by the percentage which indicate how certain they are. In most case, you'll pick up the first in return value.

    NOTE: BugMeNot now supports only such accounts per domain. URIs like below will be wrapped up, and this method looks for and extracts accounts for example.com.

      http://example.com/foo/
      http://example.com/bar/

SEE ALSO

AUTHOR

Kentaro Kuribayashi <kentaro@cpan.org>

COPYRIGHT AND LICENSE (The MIT License)

Copyright (c) 2006, Kentaro Kuribayashi <kentaro@cpan.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.