Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: screen scraping google

by beable (Friar)
on Jul 15, 2004 at 00:49 UTC ( [id://374476]=note: print w/replies, xml ) Need Help??


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)];

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://374476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found