# by John Heidemann # Copyright (C) 1996 by USC/ISI # $Id: AdvancedNews.pm,v 1.3 2007/08/22 00:49:41 Daddy Exp $ # # Complete copyright notice follows below. =head1 NAME WWW::Search::AltaVista::AdvancedNews - class for advanced Alta Vista news searching =head1 SYNOPSIS use WWW::Search; my $oSearch = new WWW::Search('AltaVista::AdvancedNews'); =head1 DESCRIPTION This class implements the advanced AltaVista news search (specializing AltaVista and WWW::Search). It handles making and interpreting AltaVista web searches F. Details of AltaVista can be found at L. This class exports no public interface; all interaction should be done through WWW::Search objects. =head1 AUTHOR C is written by John Heidemann, . =head1 COPYRIGHT Copyright (c) 1996 University of Southern California. All rights reserved. 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. 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. =cut #' ##################################################################### package WWW::Search::AltaVista::AdvancedNews; use strict; use base 'WWW::Search::AltaVista'; =head2 native_setup_search This private method does the heavy lifting after native_query() is called. =cut sub native_setup_search { my($self) = shift; if (!defined($self->{_options})) { $self->{_options} = { pg => 'aq', 'text' => 'yes', what => 'news', fmt => 'd', 'search_url' => 'http://www.altavista.com/cgi-bin/query', }; }; # let AltaVista.pm finish up the hard work. return $self->SUPER::native_setup_search(@_); } # native_setup_search 1; __END__