WWW::Search::GoTo(3pm)

WWW::Search::GoTo3pm

Class for searching goto.com

Usage

    require WWW::Search;
    $search = new WWW::Search('GoTo');

Overview

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.

Notes

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

How does it work?

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.

Author

WWW::Search::GoTo is written by Jim Smyser Author e-mail <[email protected]>

From libwww-search-perl 2.07-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.