welle has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
I am playing with the module Google::Search to search the top results of a simple query. The module works fine. Though, I couldn't figure out how to restrict the search to a specific language. So far as I know the API supports this (lr=_lang_xx). Any Idea?
use Google::Search; my $search = Google::Search->Web([ lr => 'it' ], query => "site:su +nrise.ch" ); while ( my $result = $search->next ) { print $result->rank, " ", $result->uri, "\n"; }
This code snippet produces results in all languages used by this multilanguage site.
Thank you for your ideas. Welle
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Google::Search language
by Perlbotics (Archbishop) on May 15, 2011 at 10:22 UTC | |
by welle (Beadle) on May 15, 2011 at 10:48 UTC |