home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>WWW::Search::AltaVista - class for searching Alta Vista</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::AltaVista - class for searching Alta Vista</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="#options">OPTIONS</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="#author and current version">AUTHOR and CURRENT VERSION</A></LI>
- <LI><A HREF="#copyright">COPYRIGHT</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>WWW::Search::AltaVista - class for searching Alta Vista</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>
- <PRE>
- require WWW::Search;
- $search = new WWW::Search('AltaVista');</PRE>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This class is an AltaVista specialization of WWW::Search.
- It handles making and interpreting AltaVista searches
- <EM><A HREF="http://www.altavista.com">http://www.altavista.com</A></EM>.</P>
- <P>This class exports no public interface; all interaction should
- be done through WWW::Search objects.</P>
- <P>
- <HR>
- <H1><A NAME="options">OPTIONS</A></H1>
- <P>The default is for simple web queries.
- Specialized back-ends for simple and advanced web and news searches
- are available (see
- <A HREF="../../../../site/lib/WWW/Search/AltaVista/Web.html">the WWW::Search::AltaVista::Web manpage</A>,
- <A HREF="../../../../site/lib/WWW/Search/AltaVista/AdvancedWeb.html">the WWW::Search::AltaVista::AdvancedWeb manpage</A>,
- <A HREF="../../../../site/lib/WWW/Search/AltaVista/News.html">the WWW::Search::AltaVista::News manpage</A>,
- <A HREF="../../../../site/lib/WWW/Search/AltaVista/AdvancedNews.html">the WWW::Search::AltaVista::AdvancedNews manpage</A>).
- These back-ends set different combinations following options.</P>
- <DL>
- <DT><STRONG><A NAME="item_search_url%3DURL">search_url=URL</A></STRONG><BR>
- <DD>
- Specifies who to query with the AltaVista protocol.
- The default is at
- <CODE>http://www.altavista.com/cgi-bin/query</CODE>;
- you may wish to retarget it to
- <CODE>http://www.altavista.telia.com/cgi-bin/query</CODE>
- or other hosts if you think that they're ``closer''.
- <P></P>
- <DT><STRONG><A NAME="item_search_debug%2C_search_parse_debug%2C_search_ref_S">search_debug, search_parse_debug, search_ref
- Specified at <A HREF="../../../../site/lib/WWW/Search.html">the WWW::Search manpage</A>.</A></STRONG><BR>
- <DD>
- <DT><STRONG><A NAME="item_pg%3Daq">pg=aq</A></STRONG><BR>
- <DD>
- Do advanced queries.
- (It defaults to simple queries.)
- <P></P>
- <DT><STRONG><A NAME="item_what%3Dnews">what=news</A></STRONG><BR>
- <DD>
- Search Usenet instead of the web.
- (It defaults to search the web.)
- <P></P></DL>
- <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>,
- or the specialized AltaVista searches described in options.</P>
- <P>
- <HR>
- <H1><A NAME="how does it work">HOW DOES IT WORK?</A></H1>
- <P><CODE>native_setup_search</CODE> 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 <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 the LWP library
- to fetch the page specified by <CODE>{_next_url}</CODE>.
- It 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="author and current version">AUTHOR and CURRENT VERSION</A></H1>
- <P><CODE>WWW::Search::AltaVista</CODE> is written and maintained
- by John Heidemann, <<A HREF="mailto:johnh@isi.edu">johnh@isi.edu</A>>.</P>
- <P>The best place to obtain <CODE>WWW::Search::AltaVista</CODE>
- is from Martin Thurn's WWW::Search releases on CPAN.
- Because AltaVista sometimes changes its format
- in between his releases, sometimes more up-to-date versions
- can be found at
- <EM><A HREF="http://www.isi.edu/~johnh/SOFTWARE/WWW_SEARCH_ALTAVISTA/index.html">http://www.isi.edu/~johnh/SOFTWARE/WWW_SEARCH_ALTAVISTA/index.html</A></EM>.</P>
- <P>
- <HR>
- <H1><A NAME="copyright">COPYRIGHT</A></H1>
- <P>Copyright (c) 1996-1998 University of Southern California.
- All rights reserved.
- </P>
- <PRE>
-
- Redistribution and use in source and binary forms are permitted
- provided that the above copyright notice and this paragraph are
- duplicated in all such forms and that any documentation, advertising
- materials, and other materials related to such distribution and use
- acknowledge that the software was developed by the University of
- Southern California, Information Sciences Institute. The name of the
- University may not be used to endorse or promote products derived from
- this software without specific prior written permission.</PRE>
- <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>
- <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::AltaVista - class for searching Alta Vista</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-