Yahoo::Answers - The great new Yahoo::Answers!
Version 0.01
Quick summary of what the module does.
Perhaps a little code snippet.
use Yahoo::Answers; use Data::Dumper; my $ya = Yahoo::Answers->new( query => 'teste', results => 50, sort => 'date_desc', appid => '9J_NabHV34Fuzb1qIdxpKfQdBmV6eaMGeva5NESfQ7IDCupidoKd_cSGK7MI5Xvl.eLeQKd9YkPOU0M4DsX73A--' ); $ya->region_by_name('Brazil'); my $struct = $ya->get_search; if ( $ya->has_error ) { die( Dumper $ya->error ); } else { print Dumper $struct; }
With this, you can pass the country name, not the "us,uk" you can literary write the country name. The countrys are available here:
United States United kingdom Canada Australia India Spain Brazil Argentina Mexico Italy Germany France Singapore
you can also search for only results in espanol with,
En espanol
Build the URL to do the "get" with all arguments that you pass for the attributes.
Make the search, and decode the JSON, if don't have the attribute "query", it return nothing.
If have any error with your search, it sets the attribute error, so you can see the error and check for errors.
Do the request, and return the content.
Daniel de O. Mantovani, <daniel.oliveira.mantovani at gmail.com>
<daniel.oliveira.mantovani at gmail.com>
Please report any bugs or feature requests to bug-yahoo-ansewers at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Yahoo-Answers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-yahoo-ansewers at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Yahoo::Answers
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Yahoo-Answers
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Yahoo-Answers
CPAN Ratings
http://cpanratings.perl.org/d/Yahoo-Answers
Search CPAN
http://search.cpan.org/dist/Yahoo-Answers/
Thiago Rondon
Copyright 2010 Aware (www.aware.com.br)
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Yahoo::Answers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yahoo::Answers
CPAN shell
perl -MCPAN -e shell install Yahoo::Answers
For more information on module installation, please visit the detailed CPAN module installation guide.