search-engine-google
search-engine-google copied to clipboard
handle no country redirection
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');