filter ads from the html endpoint
This commit is contained in:
@@ -679,6 +679,12 @@ class ddg{
|
|||||||
|
|
||||||
$this->fuckhtml->load($result);
|
$this->fuckhtml->load($result);
|
||||||
|
|
||||||
|
if(stripos($result["attributes"]["class"], "result--ad") !== false){
|
||||||
|
|
||||||
|
// found an ad
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$title =
|
$title =
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
->getElementsByTagName(
|
->getElementsByTagName(
|
||||||
|
Reference in New Issue
Block a user