Fixed mihaaru scraper tag issue
This commit is contained in:
@@ -51,11 +51,11 @@ class MihaaruScraper
|
|||||||
});
|
});
|
||||||
|
|
||||||
$crawler->filter('.article-tags')->each(function ($node) {
|
$crawler->filter('.article-tags')->each(function ($node) {
|
||||||
$tags[] = [
|
|
||||||
|
$this->tags[] = [
|
||||||
"name" => $node->text(),
|
"name" => $node->text(),
|
||||||
"slug" => str_replace("https://mihaaru.com/", "", $node->attr('href'))
|
"slug" => str_replace("https://mihaaru.com/", "", $node->attr('href'))
|
||||||
];
|
];
|
||||||
$this->tags[] = $tags;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//Remove all the alphabets from string
|
//Remove all the alphabets from string
|
||||||
|
Reference in New Issue
Block a user