From a0c10b29b66f05aaeaf76b73b9203d1b07af4756 Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Tue, 11 Aug 2020 20:22:04 +0500 Subject: [PATCH] Update MihaaruScraper.php --- app/Services/Scrapers/MihaaruScraper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Scrapers/MihaaruScraper.php b/app/Services/Scrapers/MihaaruScraper.php index c28890a..59542e3 100644 --- a/app/Services/Scrapers/MihaaruScraper.php +++ b/app/Services/Scrapers/MihaaruScraper.php @@ -19,7 +19,7 @@ class MihaaruScraper $this->client = new Client; } - public function extract($url, $date = null, $guid = null) + public function extract($url, $date = null) { $crawler = $this->client->request('GET', $url); @@ -63,7 +63,7 @@ class MihaaruScraper 'content' => $this->content, 'url' => $url, 'date' => $date, - 'guid' => $guid, + 'guid' => str_replace("https://mihaaru.com/news/","",$url), 'author' => $this->author, 'topics' => $this->topics ];