filter ads from the html endpoint
This commit is contained in:
1 parent
61deefb75b
commit
4b16fd5897
1 file changed
+6
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user