はてブ数が多い順に並べて見ました。
スクリプト
use strict; use warnings; use Encode; use LWP::UserAgent; use URI::Escape; use Web::Query; my $ua = LWP::UserAgent->new; my $url = 'http://perl-users.jp/articles/advent-calendar/2011/'; my @tracks = wq($url)->find('#alpha-inner h3 a')->attr('href'); for my $track (@tracks) { $track =~ s!^\./!!; $track = $url . $track; print "=> $track\n"; wq($track)->find('#alpha-inner ul li a')->each(sub { my $title = decode_utf8($_->text); my $url = $_->attr('href'); my $escaped_url = uri_escape($url); my $res = $ua->get("http://api.b.st-hatena.com/entry.count?url=$escaped_url"); die $res->status_line unless $res->is_success; my $count = $res->content || 0; printf "%d [%s:title]\n", $count, $url; }); }
で、sort -nr | headした。