Explorar o código

handle google captcha

lolcat hai 1 ano
pai
achega
037566bbba
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      scraper/google.php

+ 4 - 4
scraper/google.php

@@ -2973,14 +2973,14 @@ class google{
 	
 	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");
 		}