WebService::Yandex::Suggest - Yandex Suggest as an API
use WebService::Yandex::Suggest; my $suggest = WebService::Yandex::Suggest->new(); my @suggestions = $suggest->complete("ÿíäå"); for my $suggestion (@suggestions) { print "$suggestion\n"; }
WebService::Yandex::Suggest is simple pure-perl implementation which allows you to use Yandex Suggest as a Web Service API to retrieve completions to your search query or partial query.
$suggest = WebService::Yandex::Suggest->new();
Creates new WebService::Yandex::Suggest object.
@suggestions = $suggest->complete($query);
Sends your $query to Yandex web server and fetches suggestions for the query. Suggestions are in a list
$query
$ua = $suggest->ua;
Returns underlying LWP::UserAgent object. It allows you to change User-Agent (Windows IE by default), timeout seconds and various properties.
Oleg Nikitin <olegn@stratek.ru>, module initially based on Tatsuhiko Miyagawa's <miyagawa@bulknews.net> WebService::Google::Suggest
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This module gives you NO WARRANTY.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '$suggest->complete("ÿíäå");'. Assuming CP1252
To install WebService::Yandex::Suggest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Yandex::Suggest
CPAN shell
perl -MCPAN -e shell install WebService::Yandex::Suggest
For more information on module installation, please visit the detailed CPAN module installation guide.