search-engine-google icon indicating copy to clipboard operation
search-engine-google copied to clipboard

handle no country redirection

Open gsouf opened this issue 8 years ago • 0 comments

when querying google.com google will redirect to local country tld. Info: https://support.google.com/websearch/answer/873?hl=en

We need to provide a way to provision cookies with that value that can be achieved again everytime cookies is refreshed (including when using a new proxy)

Using the parameter gws_rd=cr is an alternative fix:

use Serps\SearchEngine\Google\GoogleUrl;

$googleUrl = new GoogleUrl('google.com');
$googleUrl->setParam('gws_rd', 'cr');

gsouf avatar Apr 25 '16 13:04 gsouf