aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/ddg.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/ddg.php')
-rw-r--r--scraper/ddg.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php
index c59b423..188ad92 100644
--- a/scraper/ddg.php
+++ b/scraper/ddg.php
@@ -492,6 +492,17 @@ class ddg{
"form"
);
+ foreach($forms as $form){
+
+ if(
+ isset($form["attributes"]["id"]) &&
+ $form["attributes"]["id"] == "challenge-form"
+ )
+ }{
+
+ throw new Exception("DuckDuckGo returned an image captcha");
+ }
+
foreach(array_reverse($forms) as $form){
$this->fuckhtml->load($form);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage