WWW::Search::Ask - class for searching www.search.com
use WWW::Search; my $oSearch = new WWW::Search('Ask'); my $sQuery = WWW::Search::escape_query("+sushi restaurant +Columbus Ohio"); $oSearch->native_query($sQuery); while (my $oResult = $oSearch->next_result()) { print $oResult->url, "\n"; }
This class is a search.com specialization of WWW::Search. It handles making and interpreting searches at http://www.search.com.
This class exports no public interface; all interaction should be done through WWW::Search objects.
The query is applied as "ALL these words" (i.e. boolean AND of all the query terms)
In order to use this module, you do NOT need to know about these methods; they are just part of the underlying WWW::Search mechanism.
In WWW::Search::Ask, the default query is the same as the GUI query.
To make new back-ends, see WWW::Search.
Please tell the author if you find any!
Originally written by Martin Thurn, based loosely on the code for WWW::Search::Search.
WWW::Search::Search
This software is released under the same license as Perl itself.
To install WWW::Search::Ask, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search::Ask
CPAN shell
perl -MCPAN -e shell install WWW::Search::Ask
For more information on module installation, please visit the detailed CPAN module installation guide.