Changeset 1012

Show
Ignore:
Timestamp:
06/24/06 22:40:01
Author:
woremacx
Message:

headlines_yahoo_jp.yaml: support datetime

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Filter-EntryFullText/headlines_yahoo_jp.yaml

    r1002 r1012  
    22author: Masafumi Otsune 
    33handle: http://headlines\.yahoo\.co\.jp/ 
    4 extract: <font size=5 class="s130"><b>(.*?)</b></font><br><br>(.*?)<br>\n*?</td></tr>\n*?<!---お役立ちBOX--> 
    5 extract_capture: title body 
    6 extract_after_hook: $data->{body} .= '<div style="clear: both;">&#160;</div>' if $data->{body} =~ /yimg\.jp/; 
     4extract: <font size=5 class="s130"><b>(.*?)</b></font><br><br>(.*? - (\d+月\d+日\d+時\d+分)更新</div>)<br>\n*?</td></tr>\n*?<!---お役立ちBOX--> 
     5extract_capture: title body date 
     6extract_after_hook: | 
     7  if ($data->{body} =~ /yimg\.jp/) { 
     8    $data->{body} .= '<div style="clear: both;">&#160;</div>'; 
     9  } 
     10  if ($args->{entry}->link =~ m!/hl\?a=(\d{4})\d{2}\d{2}-!) { 
     11    $data->{date} = "$1/" . $data->{date}; 
     12  } 
     13 
     14extract_date_format: %Y/%m月%d日%H時%M分 
    715custom_feed_handle: (http://nsearch\.yahoo\.co\.jp/bin/search\?p=|http://headlines\.yahoo\.co\.jp/hl\?c=) 
    816custom_feed_follow_link: http://headlines\.yahoo\.co\.jp/hl\?a=(?:(?!view-).)+$