NAME

WWW::Search::PRWire - class for viewing latest Press Releases

SYNOPSIS

 use WWW::Search;
my $search = new WWW::Search('PRWire');
$search->native_query(WWW::Search::escape_query('NULL'));
 while (my $result = $search->next_result())
   { 
   print $result->url, "\n"; 
   }

DESCRIPTION

Class for WWW::Search for fetching and parsing latest PRWire news headlines. http://www.prnewswire.com. This code should serve as an example of using WWW::Search to parse useful data from pages other than its usual searching methods. Yes, WWW::Search is useful for retrieving data when there is "next" pages to get and yet, no search interface to interact with. See USAGE.

This class exports no public interface; all interaction should be done through WWW::Search objects.

USAGE

PRWire.pm does not deal with options $native_query (Query) or any others except $maximum_to_retrieve. In a sense, this is not a "search" backend. It simply parses all the latest headlines and retrieves more as defined by $maximum_to_retrieve.

If you use with WebSearch or AutoSearch you will need to to send a bogus query to prevent complaining of NO query. Search for NULL or something. On a web page you could just have a button with a caption "View Latest Press Releases" and optionally perhaps a option for how many to return.

$result->title returns just the date and time of the article, so you will also want to print $result->description after $result->title so users will have descriptive text identifying the article.

AUTHOR

WWW::Search::PRWire is written and maintained by Jim Smyser <jsmyser@bigfoot.com>.

COPYRIGHT

(c) PR Newswire Redistribution, retransmission, republication or commercial exploitation of the contents of PR Newswire are expressly prohibited without the written consent of PR Newswire.

WWW::Search Copyright (c) 1996-1998 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.