aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/google.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-06-11 18:44:41 -0400
committerlolcat <will@lolcat.ca>2025-06-11 18:44:41 -0400
commit037566bbba14152aa33aca9cde85a8121e2c4086 (patch)
treec11323738a64562bf05d022a83f29f98a15f52ee /scraper/google.php
parentb61bc6d07cbd62b544142b898f668c7f40ba8953 (diff)
handle google captcha
Diffstat (limited to 'scraper/google.php')
-rw-r--r--scraper/google.php8
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");
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage