aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-01-03 21:16:00 -0500
committerlolcat <will@lolcat.ca>2025-01-03 21:16:00 -0500
commit1ca2626ad908f80544c2c08e6a444b4fc6d2bec5 (patch)
tree472cbf34f2ea0e2378fcd146e904e3821640dc26 /scraper
parent9ca93f34c6f8d8d40134550b51961d16727e8050 (diff)
fix ddg bug with EOF result
Diffstat (limited to 'scraper')
-rw-r--r--scraper/ddg.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php
index a2d43c7..8ad3808 100644
--- a/scraper/ddg.php
+++ b/scraper/ddg.php
@@ -612,6 +612,25 @@ class ddg{
}
}
+ $title =
+ $this->titledots(
+ $this->fuckhtml
+ ->getTextContent(
+ $item["t"]
+ )
+ );
+
+ if(
+ $title == "EOF" &&
+ strpos(
+ $item["c"],
+ "google"
+ )
+ ){
+
+ continue;
+ }
+
// parse search result
$out["web"][] = [
"title" =>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage