Changeset 570

Show
Ignore:
Timestamp:
03/31/02 13:13:41
Author:
miyagawa
Message:

live check

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WWW-Baseball-NPB/trunk/Changes

    r569 r570  
    44        * Added bbgames script in eg/ directory 
    55        - Renamed Result class to Game class 
     6        - Fixed HTML parsing code 
    67 
    780.02  Sun Mar 31 01:56:06 JST 2002 
  • WWW-Baseball-NPB/trunk/MANIFEST

    r569 r570  
    99t/01_baseball.t 
    1010t/02_pre.t 
     11t/03_live.t 
    1112t/20020330.html 
     13t/20020331-live.html 
    1214t/20020331-pre.html 
  • WWW-Baseball-NPB/trunk/README

    r569 r570  
    11NAME 
    2     WWW::Baseball::NPB - Fetches Japanese baseball result 
     2    WWW::Baseball::NPB - Fetches Japanese baseball games information 
    33 
    44SYNOPSIS 
     
    66 
    77      my $baseball = WWW::Baseball::NPB->new; 
    8       my @results  = $baseball->results; 
    9       # or @results = $baseball->results('central'); 
     8      my @games  = $baseball->games; 
     9      # or @games = $baseball->games('central'); 
    1010 
    11       for my $res (@results) { 
    12           my $home    = $res->home; 
    13           my $visitor = $res->visitor; 
     11      for my $game (@games) { 
     12          my $home    = $game->home; 
     13          my $visitor = $game->visitor; 
    1414          printf "%s %d - %d %s (%s) [%s]\n", 
    15               $home, $res->score($home), $res->score($visitor), $visitor, 
    16               $res->status, $res->stadium; 
     15              $home, $game->score($home), $game->score($visitor), $visitor, 
     16              $game->status, $game->stadium; 
    1717      } 
    1818 
    1919DESCRIPTION 
    2020    WWW::Baseball::NPB provides you a way to fetch and extract Japanese 
    21     baseball result via Yahoo! Baseball. (NPB = Nippon Professional 
    22     Baseball) 
     21    baseball games information via Yahoo! Baseball. (NPB = Nippon 
     22    Professional Baseball) 
    2323 
    2424NOTE 
  • WWW-Baseball-NPB/trunk/lib/WWW/Baseball/NPB.pm

    r569 r570  
    6969</b> 
    7070(?:</td>\n)?</tr> 
    71 <tr> 
     71<tr>(?:<td colspan=3 align=center><small>\[ <a href=".*?">¥é¥€¥Ö</a> \]</small></td></tr><tr>)? 
    7272<td align="center" colspan=3 ?>(.*?)</td> 
    7373</tr>