WWW::Search::Lycos - class for searching Lycos
use WWW::Search; my $oSearch = new WWW::Search('Lycos'); 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 Lycos specialization of WWW::Search. It handles making and interpreting Lycos-site searches http://www.Lycos.com.
This class exports no public interface; all interaction should be done through WWW::Search objects.
By default, WWW::Search::Lycos returns results only from www.lycos.com's "Web Pages" search result section; results from "Categories", "Web Sites", and "News & Media" are ignored.
The default search mode is "any" of the query terms. If you want to search for "ALL" of the query terms, add {'matchmode' => 'and'} as the second argument to native_query(). More advanced query modes can be added upon request; please contact the author.
www.lycos.com is pretty slow to respond; but I have not had a problem with the default timeout.
www.lycos.com does not give the score, date, nor size of the pages at the resulting URLs; therefore change_date(), score(), and size() will never have a value.
To make new back-ends, see WWW::Search.
Please tell the author if you find any!
This module adheres to the WWW::Search test suite mechanism.
WWW::Search
Test cases (accurate as of 1998-12-10): $file = 'test/Lycos/zero_result'; $query = 'Bogus' . $bogus_query; test($mode, $TEST_EXACTLY); $file = 'test/Lycos/one_page_result'; $query = '"Chri'.'stie Ab'.'bott"'; test($mode, $TEST_RANGE, 2, 50); $file = 'test/Lycos/multi_page_result'; $query = 'repli'.'cation'; test($mode, $TEST_GREATER_THAN, 100);
As of 1998-12-07, WWW::Search::Lycos is maintained by Martin Thurn (MartinThurn@iname.com).
WWW::Search::Lycos
WWW::Search::Lycos was originally written by Martin Thurn, based on WWW::Search::Yahoo version 1.12 of 1998-10-22.
WWW::Search::Yahoo
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
If it is not listed here, then it was not a meaningful nor released revision.
Now uses lycos.com's advanced query format.
First public release after being adopted by Martin Thurn.
To install WWW::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search
CPAN shell
perl -MCPAN -e shell install WWW::Search
For more information on module installation, please visit the detailed CPAN module installation guide.