Show
Ignore:
Timestamp:
11/24/07 14:41:06 (5 years ago)
Author:
tokuhirom
Message:

CommentGetter: added vox support.

Location:
lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter/share/siteinfo.json

    r1957 r1964  
    8181            "author" : "/following-sibling::dd[1]/ul/li[1]" 
    8282        } 
     83    }, 
     84    { 
     85        "url" : "^http://.*.vox.com/.*", 
     86        "context" : "//div[starts-with(@class,'comment comment-')]", 
     87        "attributes" : { 
     88            "body" : "//div[@class='comment-body']", 
     89            "date" : "//li[@class='asset-meta-datetime-issued item']", 
     90            "author" : "//li[@class='asset-meta-screenname item']/a" 
     91        } 
    8392    } 
    8493] 
  • lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter/t/01_basic.t

    r1953 r1964  
    114114  body: トクメイきボウナンス。ソウナンス。 
    115115 
     116=== vox 
     117--- input: http://tokuhirom.vox.com/library/post/idea-htmlfillenctype.html 
     118--- expected 
     119- 
     120  body: I wonder how it affects a performance each time we add these kinds of HTML parser based filters to the output every time the page loads. 
     121  author: miyagawa 
     122  date: Oct 31, 2006 
     123- 
     124  body: yeah, I think so too.This module is just a experiment.  
     125  date: Nov 1, 2006 
     126  author: tokuhirom 
     127- 
     128  body: I guess this command is very useful to remember what's the right tag.% perldoc -m CGI | grep multipart/ 
     129  author: miyagawa 
     130  date: Nov 2, 2006 
     131