Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Trying to fetch Google results via TreeBuilder: 403 Forbiddenby Anonymous Monk |
on Oct 14, 2015 at 09:08 UTC ( [id://1144833]=note: print w/replies, xml ) | Need Help?? |
Why? Because you're not asking in the way that google likes to be asked (the headers, the request, its not what google wants) And how can I get the actual result(s) instead? Consult google documentation If it works from firefox, duplicate the firefox headers, yeah you may have to use WWW::Mechanize for the actual fetching instead of new_from_url
In Section
Seekers of Perl Wisdom
|
|