WWW::GoKGS::Scraper::TournGames - Games of the KGS tournament
use WWW::GoKGS::Scraper::TournGames; my $tourn_games = WWW::GoKGS::Scraper::TournGames->new; my $result = $tourn_games->query( id => 762, round => 1 ); # => { # name => 'KGS Meijin Qualifier October 2012', # round => 1, # games => [ # { # sgf_uri => 'http://files.gokgs.com/.../foo-bar.sgf', # white => { # name => 'foo', # rank => '3d', # }, # black => { # name => 'bar', # rank => '1d', # }, # board_size => 19, # start_time => '2012-10-27T16:05', # result => 'W+Resign' # }, # ... # ], # byes => [ # { # name => 'baz', # rank => '2d', # type => 'System' # } # ], # next_round_uri => '/tournGames.jsp?id=762&round=2', # links => { # entrants => [ # { # sort_by => 'name', # uri => '/tournEntrants.jsp?id=762&sort=n' # }, # { # sort_by => 'result', # uri => '/tournEntrants.jsp?id=762&sort=s' # } # ], # rounds => [ # { # round => 1, # start_time => '2012-10-27T16:05', # end_time => '2012-10-27T18:35', # uri => '/tournGames.jsp?id=762&round=1', # }, # ... # ] # } # }
This class inherits from WWW::GoKGS::Scraper.
# => "http://www.gokgs.com/tournGames.jsp"
Given key-value pairs of query parameters, constructs a URI object which consists of base_uri and the paramters.
base_uri
Can be used to get or set an LWP::UserAgent object which is used to GET the requested resource. Defaults to the LWP::UserAgent object shared by Web::Scraper users ($Web::Scraper::UserAgent).
GET
LWP::UserAgent
$Web::Scraper::UserAgent
WWW::GoKGS
Ryo Anazawa (anazawa@cpan.org)
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install WWW::GoKGS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::GoKGS
CPAN shell
perl -MCPAN -e shell install WWW::GoKGS
For more information on module installation, please visit the detailed CPAN module installation guide.