Fixed mihaaru scraper tag issue

This commit is contained in:
2020-08-10 06:17:39 +05:00
parent 66993b5873
commit f993ae47e3

View File

@@ -51,11 +51,11 @@ class MihaaruScraper
});
$crawler->filter('.article-tags')->each(function ($node) {
$tags[] = [
$this->tags[] = [
"name" => $node->text(),
"slug" => str_replace("https://mihaaru.com/", "", $node->attr('href'))
];
$this->tags[] = $tags;
});
//Remove all the alphabets from string