Net::Google error handling

s_p_a_m_mob_at_hotmail.com
Date: 03/07/05


Date: 7 Mar 2005 08:02:25 -0800

Hi there,

Do any of you know how to catch any error from Net::Google (or
underlying SOAP::Lite?). I created a basic script to retrieve files
from Google, and if my internet connexion gets down, I can't catch
neither an exception nor an error code. It just seems to output some
debugging informations...

my $google = Net::Google->new(key=>$key);
my $search = $google->search();
$search->query($query);
$search->max_results(MAXRESULTS);
$search->filter(1);

$results = $search->results(); # that method returns an ARRAY in any
case

Thanks in advance,

Marc-Olivier BERNARD



Relevant Pages

  • Re: Suggestions please
    ... What would the advice be on the old pages regarding google? ... Should I just do nothing and let google drop the old pages in its own good time? ... It's a site that was running on a really basic script and the only way to move forward with it was to have a total change of script. ...
    (alt.internet.search-engines)
  • Re: Its expensive to eat well
    ... I guess I have an underlying assumption that if I don't know something, ... names/terms are used, Ellen will ask on here rather than google up a ... Susan ...
    (alt.support.diabetes)
  • Google Module?
    ... Just started learning Python and wanted to make a program that would ... retrieve files that were indexed by Google. ... filtered by their extensions, nothing too difficult. ...
    (comp.lang.python)
  • Re: HST simplified...please
    ... with "advisors" who Google and parrot but have no real ... understanding of the underlying subject matter. ...
    (misc.fitness.weights)
  • hijacking this site
    ... why are the google discussion forum sites being hijacked? ... hwo does one ... determine the identity of the hijackers--wonder the underlying ...
    (sci.med.cardiology)