Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Google Cookie popup is Stopping this Working #37

Open
paulfeakins opened this issue Apr 12, 2021 · 5 comments
Open

New Google Cookie popup is Stopping this Working #37

paulfeakins opened this issue Apr 12, 2021 · 5 comments

Comments

@paulfeakins
Copy link

It seems like a new Google Cookie popup is stopping this working, see screenshot.
image

That's what you get when you echo the response.

@JamesSimpson
Copy link

JamesSimpson commented Apr 29, 2021

Noticed exactly the same thing, and have just been doing some testing, and got around the problem by setting a cookie that states the cookie policy has been agreed - i.e.

$google->setPreference('results_per_page', 100);
$google->setPreference('google_domain', 'google.co.uk');

// Set A Cookie To State GDPR acceptance
$browser = $google->getBrowser();
$browser->setCookies( ".google.co.uk\tTRUE\t\\\tTRUE\t2145916800\tCONSENT\tYES+shp.gws-20210421-0-RC1.en+FX+836\r\n" );

Then do your standard do while resonse

@LunarDevelopment
Copy link

LunarDevelopment commented May 6, 2021

@JamesSimpson

Although the rendered page has a Cookie Popup modal, the SERP results still exist in the DOM *

The inability to parse the results is a failing of the preg_match regex formula this library uses, setting cookie fixes the symptoms but not the cause.

  • although this does depend on your user agent string, I've tested a great number of them and some return a dom with results + pop up and some return just the pop up.

@paulfeakins
Copy link
Author

So for now this still seems broken and unusable, even if you add the cookies manually?

@Athlon1600
Copy link
Owner

Athlon1600 commented May 27, 2021

So for now this still seems broken and unusable, even if you add the cookies manually?

I can't replicate any of this from my end.

That's what you get when you echo the response.

that may be, but the $searchResponse->results should still return an array of all the results for you. Is that array empty on your end? Post your code and the outputs you're getting

@sanishan
Copy link

sanishan commented Jun 3, 2021

that may be, but the $searchResponse->results should still return an array of all the results for you. Is that array empty on your end? Post your code and the outputs you're getting

This only happens when you using EUROPE Based proxy or IP.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants