Changeset 728
- Timestamp:
- 10/26/07 08:26:11 (6 years ago)
- Location:
- lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter
- Files:
-
- 2 modified
-
lib/WWW/CommentGetter/Plugin/Ameblo.pm (modified) (1 diff)
-
t/01_basic.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter/lib/WWW/CommentGetter/Plugin/Ameblo.pm
r691 r728 12 12 13 13 my $ret = scraper { 14 process 'p.comment_body', 'bodies[]' => 'TEXT'; 14 process 'div.each_comment', 'bodies[]' => scraper { 15 process 'p.comment_body', 'body' => 'TEXT'; 16 process 'span.comment_author', 'author' => 'TEXT'; 17 }; 15 18 }->scrape(URI->new($url)); 16 19 17 return [ 18 map { +{ body => $self->trim($_) } } @{ $ret->{bodies} } 19 ]; 20 return $ret->{bodies}; 20 21 } 21 22 -
lang/perl/WWW-CommentGetter/trunk/WWW-CommentGetter/t/01_basic.t
r699 r728 40 40 --- expected 41 41 - 42 author: ☆真理☆ 42 43 body: 番組視ましたょ社長の紹介ブログも良いけどたまには御自身の事も書いて下さい 43 44 - 45 author: KOTORI 44 46 body: きれいでした!このブログでまた登場していただけることを期待してます笑 45 47
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)