Hatena::Keyword::Similar - Retrieve similarity Hatena Keywords.
Version 0.01
use Hatena::Keyword::Similar; @keywords = Hatena::Keyword::Similar->similar(qw(Perl Ruby Python)); print $_ for @keywords; my $cache = Cache::File->new( cache_root => '/path/to/cache', default_expires => '3600 sec', ); $keywords = Hatena::Keyword::Similar->similar(qw(Perl Ruby), { cache => $cache, }); print $_->jcode->euc for @$keywords;
This module allows you to retrieve Hatena keywords similar to given words with Web API.
A Hatena keyword is an element in a suite of web sites *.hatena.ne.jp having blogs and social bookmarks among others. Please refer to http://d.hatena.ne.jp/keyword/ (in Japanese) for details.
It queries Hatena Keyword Similarity API internally for retrieving terms.
Returns an array or an array reference which contains Hatena::Keyword objects similar to given words as argument.
This method works correctly for Japanese characters but their encoding must be utf-8. And also returned words are encoded as utf-8 string.
Last argument is a optional. It can be contained a cache object, same as Hatena::Keyword.
Naoya Ito, <naoya at bloghackers.net>
<naoya at bloghackers.net>
Please report any bugs or feature requests to bug-hatena-keyword-similar at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hatena-Keyword-Similar. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-hatena-keyword-similar at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Hatena::Keyword::Similar
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Hatena-Keyword-Similar
CPAN Ratings
http://cpanratings.perl.org/d/Hatena-Keyword-Similar
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Hatena-Keyword-Similar
Search CPAN
http://search.cpan.org/dist/Hatena-Keyword-Similar
Copyright 2006 Naoya Ito, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hatena::Keyword::Similar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hatena::Keyword::Similar
CPAN shell
perl -MCPAN -e shell install Hatena::Keyword::Similar
For more information on module installation, please visit the detailed CPAN module installation guide.