|
WWW::Search::GoTo - class for searching GoTo.com
|
WWW::Search::GoTo - class for searching GoTo.com
This module is not included with the standard ActivePerl distribution. It is available as a separate download using PPM.
require WWW::Search;
$search = new WWW::Search('GoTo');
This class is an GoTo specialization of WWW::Search.
It handles making and interpreting GoTo searches
www-GoTo.com.
Nothing special about GoTo: no search options. It is much like
Google in that it attempts to returm relavent search results
using simple queries.
This class exports no public interface; all interaction should
be done through WWW::Search objects.
Uses result field $result->source which is helpful with this engine
because the the URL is owner encoded. $result->source will display a
plain base URL address and should be called after $result->description
To make new back-ends, see the WWW::Search manpage.
native_setup_search is called before we do anything.
It initializes our private variables (which all begin with underscores)
and sets up a URL to the first results page in {_next_url}.
native_retrieve_some is called (from WWW::Search::retrieve_some)
whenever more hits are needed. It calls the LWP library
to fetch the page specified by {_next_url}.
It parses this page, appending any search hits it finds to
{cache}. If it finds a ``next'' button in the text,
it sets {_next_url} to point to the page for the next
set of results, otherwise it sets it to undef to indicate we're done.
WWW::Search::GoTo is written by Jim Smyser
Author e-mail <jsmyser@bigfoot.com>
Copyright (c) 1996-1999 University of Southern California.
All rights reserved.
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.
|
WWW::Search::GoTo - class for searching GoTo.com
|
|