use WWW::Mixi::Scraper::Mech;
my $mech = WWW::Mixi::Scraper::Mech->new;
$mech->login( 'foo@bar.com' => 'password' );
$mech->may_have_errors('Cannot login');
my $html = $mech->get_content('/new_friend_diary.pl');
$mech->logout;
creates an object. Optional hash is passed to WWW::Mechanize, except for 'email'
and 'password' (and 'next_url'), which are used to login.
returns (hopefully decoded) content.
As name suggests, this does both 'get' and 'content'. If you pass an additional
encoding (which must be Encode-understandable), this returns encoded content.
tries to log in to mixi. As of writing this, password obfuscation and ssl login
are not implemented.
tries to log out from mixi.
dies with error message and status code if something is wrong (this may change)
shortcut for {mech}->uri.
Kenichi Ishigaki, <ishigaki at cpan.org>
Copyright (C) 2007 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.