diff options
| author | lolcat <will@lolcat.ca> | 2025-06-11 18:44:41 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-06-11 18:44:41 -0400 |
| commit | 037566bbba14152aa33aca9cde85a8121e2c4086 (patch) | |
| tree | c11323738a64562bf05d022a83f29f98a15f52ee /scraper/google.php | |
| parent | b61bc6d07cbd62b544142b898f668c7f40ba8953 (diff) | |
handle google captcha
Diffstat (limited to 'scraper/google.php')
| -rw-r--r-- | scraper/google.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scraper/google.php b/scraper/google.php index cb8c5f2..a1876a4 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"); } |
