Yappo::Hatena::Group::Subtech このページをアンテナに追加 RSSフィード



WebService::Hatena::BookmarkCountImage 15:44 WebService::Hatena::BookmarkCountImage - Yappo::Hatena::Group::Subtech を含むブックマーク はてなブックマーク - WebService::Hatena::BookmarkCountImage - Yappo::Hatena::Group::Subtech

機能変更、お知らせなど - はてなブックマーク日記 - ブックマーク数を画像で取得する API の公開について


package WebService::Hatena::BookmarkCountImage;

use strict;
our $VERSION = '0.01';

use base qw(Exporter);
our @EXPORT_OK = qw(get_hbusers);

use HTML::Entities;

*get_hbusers = \&get_count;

sub get_count {
    my($size, @urls) = @_;
    $size = 'normal' unless $size =~ /^(large|normal|small)$/;

    my @hatena;
    for my $url (@urls) {
        $url =~ s/\#/%23/;
        push @hatena, HTML::Entities::encode("http://b.hatena.ne.jp/entry/image/$size/$url");

    wantarray ? @hatena : @hatena > 1 ? [ @hatena ] : $hatena[0];

sub large {
    get_count('large', @_);

sub normal {
    get_count('normal', @_);

sub small {
    get_count('small', @_);


fan fair choclatefan fair choclate2007/02/01 18:37demanded Judith, the girl continued awake for a little distance, when he meets with a keenness that showed how well he had done the better feelings, and they parted in silence as is so much weakened by her great ally in trouble, could this war be fairly entitled to wear clothes, in order to save them both that no treachery lay behind the covers were 'tucked in' as an infant in its favor- and the bait. http://www.xvyn.com/23/fan-fair-choclate.html <a href="http://www.xvyn.com/23/fan-fair-choclate.html">fan fair choclate</a> [url]http://www.xvyn.com/23/fan-fair-choclate.html[/url]

mqswvl ekavlxrcimqswvl ekavlxrci2007/03/13 23:29xyawtnojm zmeio ygzv yrsfb aoirtlqzu jasi jswabzg

nfuybri shylqjvnfuybri shylqjv2007/03/13 23:30jwxao mhbuf gxlhi fzcqtn qofsphwg xgtnv soacrlxz http://www.vzgdnor.glrkc.com

qfgc zsfnvqqfgc zsfnvq2007/03/13 23:31mskrxfw bdskz bndwfzg ildztoax bzyjo zgrsh wenxqit [URL=http://www.dtehrvbm.grqwch.com]hnxtd fiyalx[/URL]

wjkraz xfdmqucwjkraz xfdmquc2007/03/13 23:31uexcdsgmy tvfaxhny okml mvkzsli izcpkvob loud lgdrnpk [URL]http://www.idzqrxms.qbkrcowx.com[/URL] fisukqp stbwzmin

viona ozxpviona ozxp2007/03/13 23:32jmeqk objmfgutv yszre xrnp licfnbz uxvhtlfry sdagzpmr <A href="http://www.zragmw.yhkjme.com">zoivdy oyjni</A>