From 56c6b4ee351cf2bef8ee4bf9e5786b5f27908a39 Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Thu, 12 Jun 2025 12:03:49 +0530 Subject: [PATCH] handle google captcha https://git.lolcat.ca/lolcat/4get/commit/037566bbba14152aa33aca9cde85a8121e2c4086 --- scraper/google.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scraper/google.php b/scraper/google.php index 6642b04..ea9ec3d 100644 --- a/scraper/google.php +++ b/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"); }