Skip to content

Instantly share code, notes, and snippets.

@akiym
Created May 30, 2011 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiym/999058 to your computer and use it in GitHub Desktop.
Save akiym/999058 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Web::Query;
my $elem = wq('http://ch.nicovideo.jp/channel/ch60001')
->find('ul.g-video-mini .g-video-right');
$elem->{trees} = [$elem->{trees}[0]];
$elem->each(sub {
my $i = shift;
print $_->text, "\n";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment