Oneoline ignore gallery articles
This commit is contained in:
@@ -24,6 +24,11 @@ class OneOnlineScraper
|
|||||||
|
|
||||||
$crawler = $this->client->request('GET', $url);
|
$crawler = $this->client->request('GET', $url);
|
||||||
|
|
||||||
|
if($crawler->filter('.gallery-cover')->count() > 0)
|
||||||
|
{
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
$crawler->filter('h1')->each(function ($node) {
|
$crawler->filter('h1')->each(function ($node) {
|
||||||
$this->title = $node->text();
|
$this->title = $node->text();
|
||||||
});
|
});
|
||||||
|
@@ -33,5 +33,8 @@ return [
|
|||||||
],
|
],
|
||||||
"color" => "green"
|
"color" => "green"
|
||||||
],
|
],
|
||||||
]
|
],
|
||||||
|
|
||||||
|
|
||||||
|
"playstore" => "https://play.google.com/store/apps/details?id=dev.baraveli.karudhaas"
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user