From 4b16fd58971321e6938046702210e2773573c621 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 30 Sep 2025 19:56:30 -0400 Subject: [PATCH] filter ads from the html endpoint --- scraper/ddg.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scraper/ddg.php b/scraper/ddg.php index af96465..c59b423 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -679,6 +679,12 @@ class ddg{ $this->fuckhtml->load($result); + if(stripos($result["attributes"]["class"], "result--ad") !== false){ + + // found an ad + continue; + } + $title = $this->fuckhtml ->getElementsByTagName(