Show
Ignore:
Timestamp:
12/24/07 14:16:43 (13 months ago)
Author:
yasu
Message:

lang/perl/WWW-NicoVideo?:

getNewEntries, getRecentEntries を追加。(NicoVideo?.pm)
ニコニコ動画の仕様変更 (サムネイル画像のXpath) に追従。(Scraper.pm)
timelocalの使い方を間違えていて1月ずれていたのを修正。(Scraper.pm)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WWW-NicoVideo/trunk/lib/WWW/NicoVideo/Scraper.pm

    r2189 r3521  
    2929    process('//div[@class="thumb_frm"]', 
    3030            'entries[]' => scraper { 
    31               process('/div/div/div/p/a/img', 
     31              process('/div/div/div[3]/a/img', 
    3232                      imgUrl => '@src', 
    3333                      imgWidth => '@width', 
     
    7979              $postDateTimeStr =~ 
    8080                /(\d+)年(\d+)月(\d+)日\s+(\d+)\D+(\d+)\D+(\d+)/; 
    81               timelocal($6, $5, $4, $3, $2, $1); } 
     81              timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900); } 
    8282           ); 
    8383    process('//div[@id="PAGEBODY"]/div/div/p[3]',