|  |  
 |   |   
 NAMEWWW::Mixi::Scraper::Mech SYNOPSIS    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;
DESCRIPTIONMainly used internally. METHODSnewcreates an object. Optional hash is passed to WWW::Mechanize, except for 'email' and 'password' (and 'next_url'), which are used to login. getgets content of the uri. contentreturns (hopefully decoded) content. get_contentAs name suggests, this does both 'get' and 'content'. If you pass an additional encoding (which must be Encode-understandable), this returns encoded content. logintries to log in to mixi. As of writing this, password obfuscation and ssl login are not implemented. logouttries to log out from mixi. may_have_errorsdies with error message and status code if something is wrong (this may change) urishortcut for {mech}->uri. SEE ALSOWWW::Mechanize AUTHORKenichi Ishigaki, <ishigaki at cpan.org> COPYRIGHT AND LICENSECopyright (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. 
 
 |