SPUG: I can't get any content

Adam Monsen haircut at gmail.com
Thu Oct 7 10:13:46 CDT 2004


Luis,

if you wish to use Google programmatically, read this:
http://www.google.com/apis/


On Thu, 7 Oct 2004 07:25:40 -0700, DeRykus, Charles E
<charles.e.derykus at boeing.com> wrote:
> 
> > #!/usr/bin/perl
> > use LWP::Simple;
> > @content=split /\n/,get("http://www.google.com/search?hl=en&q=perl");
> > print "@content \n"
> 
> > But I can not received any content from this url. any idea?
> 
> Looks like you're not welcome:
> 
> --
> Charles DeRykus
> 
>    perl -le 'use LWP::Debug qw(+);use LWP::Simple; getprint "http://www.google.com/search?hl=en&q=perl"'
> 
>    ...
>    LWP::UserAgent::send_request: GET http://www.google.com/search?hl=en&q=perl
>    LWP::UserAgent::_need_proxy: Proxied to <....censored....>
>    LWP::Protocol::http::request: ()
>    LWP::Protocol::collect: read 878 bytes
>    LWP::Protocol::collect: read 3036 bytes
>    LWP::UserAgent::request: Simple response: Forbidden
>    403 Forbidden <URL:http://www.google.com/search?hl=en&q=perl>
> 
> 
> 
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at mail.pm.org  http://spugwiki.perlocity.org
> ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays, Location Unknown
> WEB PAGE: http://www.seattleperl.org
> 


-- 
Adam Monsen <adamm at wazamatta.com>
http://adammonsen.com/


More information about the spug-list mailing list