The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::CBF - Brazilian Football Championship status

SYNOPSIS

    use WWW::CBF;

    my $ranking = WWW::CBF->new();
        my $lider = $ranking->pos(1);

        print $lider->{clube}    . "\n"
            . $lider->{pontos}   . "\n"
                . $lider->{jogos}    . "\n"
                . $lider->{vitorias} . "\n"
                . $lider->{derrotas} . "\n"
                . $lider->{empates}  . "\n"
                . $lider->{gp}       . "\n"  # gols pro
                . $lider->{gc}       . "\n"  # gols contra
                . $lider->{sg}       . "\n"  # saldo de gols 
                . $lider->{ap}       . "\n"  # aproveitamento
                ;

DESCRIPTION

Este módulo oferece uma interface simples com os dados do site www.cbf.com.br, espeficicamente em relação ao Campeonato Brasileiro (a.k.a. "Brasileirão").

This module provides a simple scraping interface to www.cbf.com.br and its data, mainly the Brazilian Football (soccer) Championship.

METHODS

new

Cria uma nova instância do objeto, contento a classificação atual. Nesta versão apenas dados da série A do campeonato são obtidos.

Creates a new object instance, containing current championship ranking. In this version only A series (highest division) data is obtained.

pos(N)

Retorna um hash com informações a respeito do clube na devida posição do campeonato. Os valores do hash estão descritos na sinopse.

Returns a hash with information regarding the club in the given position on the championship. Hash values are described on the synopsis.

reload

Realiza nova busca no site e obtém valores atualizados.

Scrapes the site again and gets updated values.

AUTHOR

Breno G. de Oliveira, <garu at cpan.org>

BUGS

Please report any bugs or feature requests to bug-www-cbf at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-CBF. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WWW::CBF

You can also look for information at:

ACKNOWLEDGEMENTS

Agradecimentos especiais à Confederação Brasileira de Futebol (CBF) por fornecer os dados atualizados do campeonato em seu site.

Special thanks to the Brazilian Football Confederation (CBF) for providing the updated championship data on its website.

COPYRIGHT & LICENSE

Copyright 2009 Breno G. de Oliveira, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.