diff --git a/src/scraper/google.php b/src/scraper/google.php index 4b34120..132a27b 100644 --- a/src/scraper/google.php +++ b/src/scraper/google.php @@ -2970,18 +2970,18 @@ class google{ return $time; } - + private function detect_sorry(){ - - $recaptcha = + + $captcha_form = $this->fuckhtml ->getElementById( - "recaptcha", - "div" + "captcha-form", + "form" ); - - if($recaptcha !== false){ - + + if($captcha_form !== false){ + throw new Exception("Google returned a captcha"); } }