NAME
WWW::GoKGS::Scraper::TournGames - Games of the KGS tournament
SYNOPSIS
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',
# board_size => 19,
# white => {
# name => 'foo',
# rank => '2k',
# ],
# black => {
# name => 'bar',
# rank => '2k',
# },
# },
# ],
# links => {
# entrants => [
# {
# sort_by => 'name',
# uri => 'http://www.gokgs.com/tournEntrants.jsp?id=762&sort=n',
# },
# ...
# ],
# rounds => [
# {
# round => 1,
# start_time => '10/27/12 4:05 PM',
# end_time => '10/27/12 6:35 PM',
# uri => 'http://www.gokgs.com/tournGames.jsp?id=762&round=1',
# },
# ...
# ],
# },
# }
DESCRIPTION
This class inherits from WWW::GoKGS::Scraper.
ATTRIBUTES
- $URI = $tuorn_games->base_uri
-
Defaults to
http://www.gokgs.com/tournGames.jsp
. This attribute is read-only. - $UserAgent = $tourn_games->user_agent
- $tourn_games->user_agent( LWP::UserAgent->new(...) )
-
Can be used to get or set an LWP::UserAgent object which is used to
GET
the requested resource. Defaults to theLWP::UserAgent
object shared by Web::Scraper users ($Web::Scraper::UserAgent
).
METHODS
SEE ALSO
AUTHOR
Ryo Anazawa (anazawa@cpan.org)
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.