Re: PERL Web search

2009-01-12 Thread Chas. Owens
On Mon, Jan 12, 2009 at 23:36, Gunnar Hjalmarsson wrote: snip > I just read Chas's reply, though, and I wasn't aware of the fact that Google > disallow *all* automated access to their search engine. snip Well, they don't disallow all automated access; they do allow automated access through the SO

Re: PERL Web search

2009-01-12 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: use LWP::UserAgent; use CGI qw(:standard); print header(-type => 'text/html', -charset => 'UTF-8'); #--^^^ # Google uses UTF-8 encoding my $url = 'http://www.google.com/search?q=traducao'; my

Re: PERL Web search

2009-01-12 Thread Chas. Owens
On Mon, Jan 12, 2009 at 15:26, wrote: > Dear all, > I can not make a search using perl. > I get the error: > > Couldn't get http://www.google.com/search?q=traducao at browser.pl > line 13. > > This is the naked script: > > #!/usr/bin/perl > > use strict; > use CGI::Carp qw(fatalsToBrowser); > use

Re: PERL Web search

2009-01-12 Thread Gunnar Hjalmarsson
tt.traduto...@gmail.com wrote: Dear all, I can not make a search using perl. I get the error: Couldn't get http://www.google.com/search?q=traducao at browser.pl line 13. By default, the LWP family of modules sends a client identifier that begins with 'libwww-perl/'. Unfortunately Perl is also