home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>WWW::Search::LookSmart - class for searching LookSmart</TITLE>
- <LINK REL="stylesheet" HREF="../../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> WWW::Search::LookSmart - class for searching LookSmart</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- <LI><A HREF="#how does it work">HOW DOES IT WORK?</A></LI>
- <LI><A HREF="#testing">TESTING</A></LI>
- <LI><A HREF="#author">AUTHOR</A></LI>
- <LI><A HREF="#legalese">LEGALESE</A></LI>
- <LI><A HREF="#version history">VERSION HISTORY</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>WWW::Search::LookSmart - class for searching LookSmart</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <P>use WWW::Search;
- my $Search = new WWW::Search('LookSmart'); # cAsE matters
- my $Query = WWW::Search::escape_query(``Where is Jimbo'');
- $Search->native_query($Query);
- while (my $Result = $Search-><CODE>next_result())</CODE> {
- print $Result->url, ``\n'';
- }</P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This class is a LookSmart specialization of WWW::Search.
- It handles making and interpreting LookSmart searches
- <EM><A HREF="http://looksmart.com">http://looksmart.com</A></EM>.</P>
- <P>LookSmart will first display it's own internal site results
- from it's many categories if found there, else it will
- return outside results from the web. Thus, depending on the
- query there will be slightly two different formats returned
- depending on whether or not LookSmart finds them in it's own
- internal categories. All in all, this is a nice search engine!</P>
- <P>LookSmart only returns 10 hits per page and there is no search
- options.</P>
- <P>This class exports no public interface; all interaction should
- be done through <A HREF="../../../../site/lib/WWW/Search.html">the WWW::Search manpage</A> objects.</P>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P>To make new back-ends, see <A HREF="../../../../site/lib/WWW/Search.html">the WWW::Search manpage</A>.</P>
- <P>
- <HR>
- <H1><A NAME="how does it work">HOW DOES IT WORK?</A></H1>
- <P><CODE>native_setup_search</CODE> is called (from <CODE>WWW::Search::setup_search</CODE>)
- before we do anything. It initializes our private variables (which
- all begin with underscore) and sets up a URL to the first results
- page in <CODE>{_next_url}</CODE>.</P>
- <P><CODE>native_retrieve_some</CODE> is called (from <CODE>WWW::Search::retrieve_some</CODE>)
- whenever more hits are needed. It calls <CODE>WWW::Search::http_request</CODE>
- to fetch the page specified by <CODE>{_next_url}</CODE>.
- It then parses this page, appending any search hits it finds to
- <CODE>{cache}</CODE>. If it finds a ``next'' button in the text,
- it sets <CODE>{_next_url}</CODE> to point to the page for the next
- set of results, otherwise it sets it to undef to indicate we''re done.</P>
- <P>
- <HR>
- <H1><A NAME="testing">TESTING</A></H1>
- <P>This module adheres to the <CODE>WWW::Search</CODE> test suite mechanism.
- See $TEST_CASES below.</P>
- <P>
- <HR>
- <H1><A NAME="author this backend is maintained and supported by jim smyser. <jsmyser@bigfoot.com>">AUTHOR
- This backend is maintained and supported by Jim Smyser.
- <<A HREF="mailto:jsmyser@bigfoot.com">jsmyser@bigfoot.com</A>></A></H1>
- <P><CODE>WWW::Search::NorthernLight</CODE> was originally written by Andreas Borchert
- based on <CODE>WWW::Search::Excite</CODE>.</P>
- <P>
- <HR>
- <H1><A NAME="legalese">LEGALESE</A></H1>
- <P>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.</P>
- <P>
- <HR>
- <H1><A NAME="version history">VERSION HISTORY</A></H1>
- <P>2.01
- New test mechanism</P>
- <P>1.00
- First release</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> WWW::Search::LookSmart - class for searching LookSmart</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-