WWW::Mixi::Scraper::Mech
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;
Mainly used internally.
creates an object. Optional hash is passed to WWW::Mechanize, except for 'email' and 'password' (and 'next_url'), which are used to login.
gets content of the uri.
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.
WWW::Mechanize
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.
To install WWW::Mixi::Scraper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mixi::Scraper
CPAN shell
perl -MCPAN -e shell install WWW::Mixi::Scraper
For more information on module installation, please visit the detailed CPAN module installation guide.