This commit is contained in:
Mohamed jinas
2024-01-28 13:09:03 +05:00
parent 68940c00b9
commit 2cafc4f500

View File

@@ -29,7 +29,7 @@ class MihaaruScraper
$crawler = $this->client->request('GET', $url);
$crawler->filter('h1')->each(function ($node) {
$crawler->filter('h1.text-waheed')->each(function ($node) {
$this->title = $node->text();
});
@@ -74,7 +74,7 @@ class MihaaruScraper
'content' => $this->content,
'url' => $url,
'date' => $date,
'guid' => str_replace("https://mihaaru.com/news/", "", $url),
'guid' => basename($url),
'author' => $this->author,
'topics' => $this->topics
];