in reply to screen scraping google

Hmmm, I get that error too. However, replacing "LINE 34" with this seems to work:

    my $resp = $browser->get($uri);

Also! May I suggest that you take a look at the WWW::Mechanize module on CPAN?

Replies are listed 'Best First'.
Re^2: screen scraping google
by rob_au (Abbot) on Jul 15, 2004 at 01:19 UTC
    Also! May I suggest that you take a look at the WWW::Mechanize module on CPAN?
    Depending upon your requirements, you may be better recommended to employ the Google Web API using SOAP::Lite - There is an example of employing this interface with SOAP::Lite both in the examples directory of the SOAP::Lite package (in fact, this example returns the number of search results in the same manner which you are attempting to achieve with your code) and at http://hacks.oreilly.com/pub/h/170

     

    perl -le "print unpack'N', pack'B32', '00000000000000000000001011101011'"

      Or you could make life even easier and use Net::Google (which abstracts the SOAP::Lite for you).
      my @a=qw(random brilliant braindead); print $a[rand(@a)];