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 ];