Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Difficulties with WWW::Search (code)

by $code or die (Deacon)
on Dec 08, 2001 at 06:04 UTC ( [id://130374]=note: print w/replies, xml ) Need Help??


in reply to Difficulties with WWW::Search (code)

Hi,

I just tried installing and getting this module to work. I had the same problems.

I insterted a die $response->content() into the native_retrieve_some method. This was the response from the search:
Your client from the IP address xxx.xxx.xxx.xxx does not have permission to get URL /search?num=100&q=perl from this server. Please see Google's Terms of Service posted at http://www.google.com/terms_of_service.html
Those terms restrict "automated querying". So, possibly, this is the same problem you are experiencing.

I am not going to go into how one might be able to get round this limitation on a public forum like this, but recommend that users contact Google requesting permission or sign up for one of their services. However, I am really surprised that the module doesn't die or warn that a valid search results page was not returned. It might be worth contacting the WWW::Search::Google author.

Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-05-21 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found